Commit | Line | Data |
---|---|---|
959f3c4c 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:sitehtml1dir sitehtml1direxp installsitehtml1dir: test Getfile \ | |
d72254c8 | 12 | prefix prefixexp installprefix installprefixexp siteprefix html1dir sed |
959f3c4c JH |
13 | ?MAKE: -pick add $@ %< |
14 | ?Y:TOP | |
15 | ?S:sitehtml1dir: | |
16 | ?S: This variable contains the name of the directory in which site-specific | |
17 | ?S: html 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. | |
860c366a JH |
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: html pages in this directory with | |
23 | ?S: MakeMaker Makefile.PL | |
24 | ?S: or equivalent. See INSTALL for details. | |
959f3c4c JH |
25 | ?S:. |
26 | ?S:sitehtml1direxp: | |
27 | ?S: This variable is the same as the sitehtml1dir variable, but is filename | |
28 | ?S: expanded at configuration time, for convenient use in makefiles. | |
29 | ?S:. | |
30 | ?S:installsitehtml1dir: | |
31 | ?S: This variable is really the same as sitehtml1direxp, unless you are using | |
32 | ?S: AFS in which case it points to the read/write location whereas | |
33 | ?S: html1direxp only points to the read-only access location. For extra | |
34 | ?S: portability, you should only use this variable within your makefiles. | |
35 | ?S:. | |
36 | : determine where add-on html pages go | |
21f01cb5 JH |
37 | : There is no standard location, so try to copy the previously-selected |
38 | : directory structure for the core html pages. | |
959f3c4c | 39 | case "$sitehtml1dir" in |
21f01cb5 JH |
40 | '') dflt=`echo "$html1dir" | $sed "s#^$prefix#$siteprefix#"` ;; |
41 | *) dflt=$sitehtml1dir ;; | |
959f3c4c | 42 | esac |
21f01cb5 JH |
43 | case "$dflt" in |
44 | ''|' ') dflt=none ;; | |
45 | esac | |
46 | fn=dn+~ | |
959f3c4c JH |
47 | rp='Pathname where the site-specific html pages should be installed?' |
48 | . ./getfile | |
49 | sitehtml1dir="$ans" | |
50 | sitehtml1direxp="$ansexp" | |
51 | : Change installation prefix, if necessary. | |
52 | if $test X"$prefix" != X"$installprefix"; then | |
d72254c8 | 53 | installsitehtml1dir=`echo $sitehtml1direxp | $sed "s#^$prefixexp#$installprefixexp#"` |
959f3c4c JH |
54 | else |
55 | installsitehtml1dir="$sitehtml1direxp" | |
56 | fi | |
57 |