Commit | Line | Data |
---|---|---|
0fdea05a JH |
1 | ?RCS: $Id$ |
2 | ?RCS: | |
3 | ?RCS: Copyright (c) 1999 Jarkko Hietaniemi | |
4 | ?RCS: | |
5 | ?RCS: You may redistribute only under the terms of the Artistic Licence, | |
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 | |
8 | ?RCS: that same Artistic Licence; a copy of which may be found at the root | |
9 | ?RCS: of the source tree for dist 3.0. | |
10 | ?RCS: | |
11 | ?MAKE:siteman3 siteman3exp installsiteman3: test Getfile \ | |
d72254c8 | 12 | prefix prefixexp installprefix installprefixexp siteprefix man3dir sed |
0fdea05a JH |
13 | ?MAKE: -pick add $@ %< |
14 | ?Y:TOP | |
15 | ?S:siteman3: | |
16 | ?S: This variable contains the name of the directory in which site-specific | |
17 | ?S: library man source pages are to be put. It is the responsibility of the | |
18 | ?S: Makefile.SH to get the value of this into the proper command. | |
19 | ?S: You must be prepared to do the ~name expansion yourself. | |
20 | ?S: The standard distribution will put nothing in this directory. | |
21 | ?S: After perl has been installed, users may install their own local | |
22 | ?S: man3 pages in this directory with | |
23 | ?S: MakeMaker Makefile.PL | |
24 | ?S: or equivalent. See INSTALL for details. | |
25 | ?S:. | |
26 | ?S:siteman3exp: | |
27 | ?S: This variable is the same as the siteman3 variable, but is filename | |
28 | ?S: expanded at configuration time, for convenient use in makefiles. | |
29 | ?S:. | |
30 | ?S:installsiteman3: | |
31 | ?S: This variable is really the same as siteman3exp, unless you are using | |
32 | ?S: AFS in which case it points to the read/write location whereas | |
33 | ?S: man3direxp only points to the read-only access location. For extra | |
34 | ?S: portability, you should only use this variable within your makefiles. | |
35 | ?S:. | |
2b49ece9 | 36 | ?INIT:siteman3='' |
0fdea05a JH |
37 | : determine where add-on library man pages go |
38 | case "$siteman3" in | |
39 | '') dflt=`echo "$man3dir" | $sed "s#^$prefix#$siteprefix#"` ;; | |
40 | *) dflt=$siteman3 ;; | |
41 | esac | |
42 | case "$dflt" in | |
43 | ''|' ') dflt=none ;; | |
44 | esac | |
45 | fn=dn+~ | |
46 | rp='Pathname where the site-specific library manual pages should be installed?' | |
47 | . ./getfile | |
48 | siteman3="$ans" | |
49 | siteman3exp="$ansexp" | |
50 | : Use ' ' for none so value is preserved next time through Configure | |
51 | $test X"$siteman3" = "X" && siteman3=' ' | |
52 | : Change installation prefix, if necessary. | |
53 | if $test X"$prefix" != X"$installprefix"; then | |
d72254c8 | 54 | installsiteman3=`echo "$siteman3exp" | $sed "s#^$prefixexp#$installprefixexp#"` |
0fdea05a JH |
55 | else |
56 | installsiteman3="$siteman3exp" | |
57 | fi | |
58 |