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