Commit | Line | Data |
---|---|---|
959f3c4c JH |
1 | ?RCS: $Id: vendorhtml3.U,v 1.1 1999/07/08 18:32:57 doughera Exp doughera $ |
2 | ?RCS: | |
3 | ?RCS: Copyright (c) 1999, Andy Dougherty | |
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 | ?RCS: $Log: vendorhtml3.U,v $ | |
12 | ?RCS: Revision 1.1 1999/07/08 18:32:57 doughera | |
13 | ?RCS: Initial revision | |
14 | ?RCS: | |
15 | ?RCS: | |
16 | ?MAKE:vendorhtml3 vendorhtml3exp installvendorhtml3: Getfile \ | |
17 | Oldconfig Prefixit test package vendorprefix prefix sed \ | |
18 | installstyle installprefix | |
19 | ?MAKE: -pick add $@ %< | |
20 | ?Y:TOP | |
21 | ?S:vendorhtml3: | |
860c366a JH |
22 | ?S: This variable contains the name of the directory for html |
23 | ?S: library pages. It may have a ~ on the front. | |
24 | ?S: The standard distribution will put nothing in this directory. | |
25 | ?S: Vendors who distribute perl may wish to place their own | |
26 | ?S: html pages for modules and extensions in this directory with | |
27 | ?S: MakeMaker Makefile.PL INSTALLDIRS=vendor | |
28 | ?S: or equivalent. See INSTALL for details. | |
959f3c4c JH |
29 | ?S:. |
30 | ?S:vendorhtml3exp: | |
31 | ?S: This variable is the ~name expanded version of vendorhtml3, so that you | |
32 | ?S: may use it directly in Makefiles or shell scripts. | |
33 | ?S:. | |
34 | ?S:installvendorhtml3: | |
35 | ?S: This variable is really the same as vendorhtml3exp but may differ on | |
36 | ?S: those systems using AFS. For extra portability, only this variable | |
37 | ?S: should be used in makefiles. | |
38 | ?S:. | |
39 | ?T:prog | |
40 | case "$vendorprefix" in | |
41 | '') vendorhtml3='' | |
42 | vendorhtml3exp='' | |
43 | ;; | |
44 | *) : determine where vendor-supplied html pages go. | |
45 | ?X: remove any trailing -3.0 or other version identification | |
46 | prog=`echo $package | $sed 's/-*[0-9.]*$//'` | |
47 | case "$installstyle" in | |
48 | *lib/perl5*) dflt=$vendorprefix/lib/$package/vendor_$prog/html ;; | |
49 | *) dflt=$vendorprefix/lib/vendor_$prog/html ;; | |
50 | esac | |
51 | fn=d~+ | |
52 | rp='Pathname for the vendor-supplied library html pages?' | |
53 | . ./getfile | |
54 | vendorhtml3="$ans" | |
55 | vendorhtml3exp="$ansexp" | |
56 | : Change installation prefix, if necessary. | |
57 | if $test X"$prefix" != X"$installprefix"; then | |
57a656d5 | 58 | installvendorhtml3=`echo $vendorhtml3exp | $sed "s#^$prefix#$installprefix#"` |
959f3c4c JH |
59 | else |
60 | installvendorhtml3="$vendorhtml3exp" | |
61 | fi | |
62 | ;; | |
63 | esac | |
64 |