path: root/mcon/U/man1dir.U
diff options
Diffstat (limited to 'mcon/U/man1dir.U')
1 files changed, 147 insertions, 0 deletions
diff --git a/mcon/U/man1dir.U b/mcon/U/man1dir.U
new file mode 100644
index 0000000..e6f9e87
--- /dev/null
+++ b/mcon/U/man1dir.U
@@ -0,0 +1,147 @@
+?RCS: $Id: man1dir.U,v 1997/02/28 16:10:29 ram Exp $
+?RCS: Copyright (c) 1996, Andy Dougherty
+?RCS: Copyright (c) 1991-1993, Raphael Manfredi
+?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: $Log: man1dir.U,v $
+?RCS: Revision 1997/02/28 16:10:29 ram
+?RCS: patch61: created
+?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: man1 used instead of man everywhere.
+?MAKE:man1dir man1direxp man1ext installman1dir: afs cat nroff Loc Oldconfig \
+ spackage test Getfile Prefixit prefixexp Prefixup sysman Myread
+?MAKE: -pick add $@ %<
+?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: This variable is the same as the man1dir variable, but is filename
+?S: expanded at configuration time, for convenient use in makefiles.
+?S: This variable is really the same as man1direxp, unless you are using
+?S: AFS in which case it points to the read/write location whereas
+?S: man1direxp only points to the read-only access location. For extra
+?S: portability, you should only use this variable within your makefiles.
+?S: This variable contains the extension that the manual page should
+?S: have: one of 'n', 'l', or '1'. The Makefile must supply the '.'.
+?S: See man1dir.
+: determine where manual pages go
+set man1dir man1dir none
+eval $prefixit
+$cat <<EOM
+$spackage has manual pages available in source form.
+case "$nroff" in
+ echo "However, you don't have nroff, so they're probably useless to you."
+ case "$man1dir" in
+ '') man1dir="none";;
+ esac;;
+echo "If you don't want the manual sources installed, answer 'none'."
+case "$man1dir" in
+' ') dflt=none
+ ;;
+ lookpath="$prefixexp/man/man1 $prefixexp/man/l_man/man1"
+ lookpath="$lookpath $prefixexp/man/p_man/man1"
+ lookpath="$lookpath $prefixexp/man/u_man/man1"
+ lookpath="$lookpath $prefixexp/man/man.1"
+?X: Experience has shown people expect man1dir to be under prefix,
+?X: so we now always put it there. Users who want other behavior
+?X: can answer interactively or use a command line option.
+?X: Does user have System V-style man paths.
+ case "$sysman" in
+ */?_man*) dflt=`./loc . $prefixexp/l_man/man1 $lookpath` ;;
+ *) dflt=`./loc . $prefixexp/man/man1 $lookpath` ;;
+ esac
+ set dflt
+ eval $prefixup
+ ;;
+*) dflt="$man1dir"
+ ;;
+echo " "
+rp="Where do the main $spackage manual pages (source) go?"
+. ./getfile
+if $test "X$man1direxp" != "X$ansexp"; then
+ installman1dir=''
+case "$man1dir" in
+'') man1dir=' '
+ installman1dir='';;
+if $afs; then
+ $cat <<EOM
+Since you are running AFS, I need to distinguish the directory in which
+manual pages reside from the directory in which they are installed (and from
+which they are presumably copied to the former directory by occult means).
+ case "$installman1dir" in
+ '') dflt=`echo $man1direxp | sed 's#^/afs/#/afs/.#'`;;
+ *) dflt="$installman1dir";;
+ esac
+ fn=de~
+ rp='Where will man pages be installed?'
+ . ./getfile
+ installman1dir="$ans"
+ installman1dir="$man1direxp"
+: What suffix to use on installed man pages
+case "$man1dir" in
+' ')
+ man1ext='0'
+ ;;
+ rp="What suffix should be used for the main $spackage man pages?"
+ case "$man1ext" in
+ '') case "$man1dir" in
+ *1) dflt=1 ;;
+ *1p) dflt=1p ;;
+ *1pm) dflt=1pm ;;
+ *l) dflt=l;;
+ *n) dflt=n;;
+ *o) dflt=o;;
+ *p) dflt=p;;
+ *C) dflt=C;;
+ *L) dflt=L;;
+ *L1) dflt=L1;;
+ *) dflt=1;;
+ esac
+ ;;
+ *) dflt="$man1ext";;
+ esac
+ . ./myread
+ man1ext="$ans"
+ ;;