Commit | Line | Data |
---|---|---|
959f3c4c JH |
1 | ?RCS: $Id: sitescriptdir.U,v $ |
2 | ?RCS: | |
3 | ?RCS: Copyright (c) 1999 Andy Dougherty | |
bbf326f0 | 4 | ?RCS: |
65a32477 | 5 | ?RCS: You may redistribute only under the terms of the Artistic License, |
959f3c4c JH |
6 | ?RCS: as specified in the README file that comes with the distribution. |
7 | ?RCS: You may reuse parts of this distribution only within the terms of | |
65a32477 | 8 | ?RCS: that same Artistic License; a copy of which may be found at the root |
959f3c4c JH |
9 | ?RCS: of the source tree for dist 3.0. |
10 | ?RCS: | |
11 | ?RCS: $Log: sitescriptdir.U,v $ | |
12 | ?RCS: | |
d72254c8 | 13 | ?MAKE:sitescriptdir sitescriptdirexp installsitescriptdir : Getfile \ |
bbf326f0 | 14 | Setprefixvar Oldconfig scriptdir prefix siteprefix sed |
959f3c4c JH |
15 | ?MAKE: -pick add $@ %< |
16 | ?Y:TOP | |
bbf326f0 | 17 | ?D:sitescriptdir='' |
959f3c4c JH |
18 | ?S:sitescriptdir: |
19 | ?S: This variable holds the name of the directory in which the user wants | |
20 | ?S: to put add-on publicly executable files for the package in question. It | |
21 | ?S: is most often a local directory such as /usr/local/bin. Programs using | |
22 | ?S: this variable must be prepared to deal with ~name substitution. | |
860c366a JH |
23 | ?S: The standard distribution will put nothing in this directory. |
24 | ?S: After perl has been installed, users may install their own local | |
25 | ?S: scripts in this directory with | |
26 | ?S: MakeMaker Makefile.PL | |
27 | ?S: or equivalent. See INSTALL for details. | |
959f3c4c | 28 | ?S:. |
bbf326f0 | 29 | ?D:sitescriptdirexp='' |
959f3c4c JH |
30 | ?S:sitescriptdirexp: |
31 | ?S: This is the same as the sitescriptdir variable, but is filename expanded at | |
32 | ?S: configuration time, for use in your makefiles. | |
33 | ?S:. | |
34 | ?S:installsitescriptdir: | |
bbf326f0 | 35 | ?D:installsitescriptdir='' |
959f3c4c JH |
36 | ?S: This variable is usually the same as sitescriptdirexp, unless you are on |
37 | ?S: a system running AFS, in which case they may differ slightly. You | |
38 | ?S: should always use this variable within your makefiles for portability. | |
39 | ?S:. | |
c6d164da MB |
40 | ?LINT:change prefixvar |
41 | ?LINT:set installsitescriptdir | |
42 | ?LINT:set sitescriptdir | |
43 | ?LINT:set sitescriptdirexp | |
959f3c4c JH |
44 | : determine where add-on public executables go |
45 | case "$sitescriptdir" in | |
57a656d5 | 46 | '') dflt=`echo $scriptdir | $sed "s#^$prefix#$siteprefix#"` ;; |
959f3c4c JH |
47 | *) dflt=$sitescriptdir ;; |
48 | esac | |
49 | fn=d~ | |
50 | rp='Pathname where add-on public executable scripts should be installed?' | |
51 | . ./getfile | |
bbf326f0 MB |
52 | prefixvar=sitescriptdir |
53 | . ./setprefixvar | |
959f3c4c | 54 |