?RCS: $Id: man3dir.U,v 3.1 1999/07/08 20:52:19 doughera Exp doughera $ ?RCS: ?RCS: Copyright (c) 1996-1999, Andy Dougherty ?RCS: Copyright (c) 1991-1993, Raphael Manfredi ?RCS: ?RCS: You may redistribute only under the terms of the Artistic Licence, ?RCS: as specified in the README file that comes with the distribution. ?RCS: You may reuse parts of this distribution only within the terms of ?RCS: that same Artistic Licence; a copy of which may be found at the root ?RCS: of the source tree for dist 3.0. ?RCS: ?RCS: $Log: man3dir.U,v $ ?RCS: Revision 3.1 1999/07/08 20:52:19 doughera ?RCS: Updated for perl5.005_5x ?RCS: ?RCS: Revision 3.0.1.1 1997/02/28 16:10:34 ram ?RCS: patch61: created ?RCS: ?X: ?X: This was originally specific to perl5. Since perl5 has man pages that ?X: go in both man1/ and man3/ directories, we need both man1dir ?X: and man3dir. This unit is basically dist's mansrc.U with ?X: man3 used instead of man everywhere. ?X: I then added various tests because perl5 has *lots* of man3 ?X: pages with long file names. -- ADO ?X: ?MAKE:man3dir man3direxp man3ext installman3dir: cat nroff Loc Oldconfig \ sed man1dir spackage package Getfile prefix Prefixit Prefixup \ installprefix d_flexfnam privlib Myread test ?MAKE: -pick add $@ %< ?Y:TOP ?S:man3dir: ?S: This variable contains the name of the directory in which manual ?S: source pages are to be put. It is the responsibility of the ?S: Makefile.SH to get the value of this into the proper command. ?S: You must be prepared to do the ~name expansion yourself. ?S:. ?S:man3direxp: ?S: This variable is the same as the man3dir variable, but is filename ?S: expanded at configuration time, for convenient use in makefiles. ?S:. ?S:installman3dir: ?S: This variable is really the same as man3direxp, unless you are using ?S: AFS in which case it points to the read/write location whereas ?S: man3direxp only points to the read-only access location. For extra ?S: portability, you should only use this variable within your makefiles. ?S:. ?S:man3ext: ?S: This variable contains the extension that the manual page should ?S: have: one of 'n', 'l', or '3'. The Makefile must supply the '.'. ?S: See man3dir. ?S:. ?T:prog tdflt : determine where library module manual pages go set man3dir man3dir none eval $prefixit $cat <&4 WARNING: Previous versions of perl installed man3 pages into $privlib/man/man3. This version will suggest a new default of $dflt. EOM tdflt=$dflt dflt='n' rp='Do you wish to preserve the old behavior?(y/n)' . ./myread case "$ans" in y*) dflt="$privlib/man/man3" ;; *) dflt=$tdflt ;; esac fi ;; ' ') dflt=none;; *) dflt="$man3dir" ;; esac echo " " fn=dn+~ rp="Where do the $package library man pages (source) go?" . ./getfile man3dir="$ans" man3direxp="$ansexp" case "$man1dir" in '') man3dir=' ' installman3dir='';; esac : Change installation prefix, if necessary. if $test X"$prefix" != X"$installprefix"; then installman3dir=`echo $man3direxp | $sed 's#^$prefix#$installprefix#'` else installman3dir="$man3direxp" fi : What suffix to use on installed man pages case "$man3dir" in ' ') man3ext='0' ;; *) rp="What suffix should be used for the $package library man pages?" case "$man3ext" in '') case "$man3dir" in *3) dflt=3 ;; *3p) dflt=3p ;; *3pm) dflt=3pm ;; *l) dflt=l;; *n) dflt=n;; *o) dflt=o;; *p) dflt=p;; *C) dflt=C;; *L) dflt=L;; *L3) dflt=L3;; *) dflt=3;; esac ;; *) dflt="$man3ext";; esac . ./myread man3ext="$ans" ;; esac