| 1 | ?RCS: $Id: vendorman3.U,v 1.1 1999/07/08 18:32:57 doughera Exp doughera $ |
| 2 | ?RCS: |
| 3 | ?RCS: Copyright (c) 1999-2000, 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: man3dir Getfile \ |
| 17 | Oldconfig Prefixit test vendorprefix prefix sed \ |
| 18 | installprefix |
| 19 | ?MAKE: -pick add $@ %< |
| 20 | ?Y:TOP |
| 21 | ?S:vendorman3: |
| 22 | ?S: This variable contains the name of the directory for man3 |
| 23 | ?S: 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: man3 pages in this directory with |
| 27 | ?S: MakeMaker Makefile.PL INSTALLDIRS=vendor |
| 28 | ?S: or equivalent. See INSTALL for details. |
| 29 | ?S:. |
| 30 | ?S:vendorman3exp: |
| 31 | ?S: This variable is the ~name expanded version of vendorman3, so that you |
| 32 | ?S: may use it directly in Makefiles or shell scripts. |
| 33 | ?S:. |
| 34 | ?S:installvendorman3: |
| 35 | ?S: This variable is really the same as vendorman3exp 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 | case "$vendorprefix" in |
| 40 | '') vendorman3='' |
| 41 | vendorman3exp='' |
| 42 | ;; |
| 43 | *) : determine where vendor-supplied module manual pages go. |
| 44 | case "$vendorman3" in |
| 45 | '') dflt=`echo "$man3dir" | $sed "s#^$prefix#$vendorprefix#"` ;; |
| 46 | *) dflt=$vendorman3 ;; |
| 47 | esac |
| 48 | case "$dflt" in |
| 49 | ''|' ') dflt=none ;; |
| 50 | esac |
| 51 | fn=nd~+ |
| 52 | rp='Pathname for the vendor-supplied manual section 3 pages?' |
| 53 | . ./getfile |
| 54 | vendorman3="$ans" |
| 55 | vendorman3exp="$ansexp" |
| 56 | ;; |
| 57 | esac |
| 58 | : Use ' ' for none so value is preserved next time through Configure |
| 59 | $test X"$vendorman3" = "X" && vendorman3=' ' |
| 60 | : Change installation prefix, if necessary. |
| 61 | if $test X"$prefix" != X"$installprefix"; then |
| 62 | installvendorman3=`echo "$vendorman3exp" | $sed "s#^$prefix#$installprefix#"` |
| 63 | else |
| 64 | installvendorman3="$vendorman3exp" |
| 65 | fi |
| 66 | |