home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!alisa.com!dakota!denny
- Newsgroups: comp.unix.aux
- Subject: Re: Shell script for installing man pages (was: man's problems)
- Message-ID: <1992Aug29.172116.7530@alisa.com>
- From: denny@alisa.com (Bob Denny)
- Date: Sat, 29 Aug 1992 17:21:16 GMT
- References: <1992Aug23.231247.6667@sunova.ssc.gov> <Btnu40.JyL@news.udel.edu>
- Organization: Alisa Systems, Inc.
- Lines: 55
-
- In <Btnu40.JyL@news.udel.edu> johnston@me.udel.edu (Bill Johnston) writes:
-
- > Here is a shell script by Bob Denny that I found in the archives on
- > aux.support.apple.com. It makes installing aux-ready man pages...
-
- Here are the scripts for linking and removing manpages that I use in most
- of my A/UX ports:
-
- #!/bin/sh
- # @(#) linkman - link to existing man page
- #
- # Bob Denny - Mon Sep 16 17:02:40 1991
- #
- # If orig and link end in ".z", but orig is there without ".z"
- # (pack not needed), will link new without the ".z". Needed for
- # A/UX pre-formatted man page system.
- #
- # BUGS: Should support symbolic links
-
- src=$1
- srcnoz=`echo $1 | sed 's/\(.*\)\.z$/\1/`
- dest=$2
- destnoz=`echo $2 | sed 's/\(.*\)\.z$/\1/`
-
- rm -f $dest $destnoz
-
- if [ -f $src ] ; then
- ln $src $dest
- elif [ -f $srcnoz ] ; then
- ln $srcnoz $destnoz
- else
- echo "$0: source $1 nonexistent."
- exit 1
- fi
- exit 0
-
- #!/bin/sh
- # @(#) - rmvman - remove man page
- #
- # Bob Denny - Mon Sep 16 17:22:56 1991
- #
- # Removes man page(s), gets those that do or do not end in ".z".
- # Needed for A/UX pre-formatted man page system.
- #
-
- for i in $* ; do
- echo "rm -f $i `echo $i | sed 's/\(.*\)\.z$/\1/`"
- rm -f $i `echo $i | sed 's/\(.*\)\.z$/\1/`
- done
-
- exit 0
- _______________________________________________________________________________
- Robert B. Denny voice: (818) 792-9474
- Alisa Systems, Inc. fax: (818) 792-4068
- Pasadena, CA (denny@alisa.com, ..uunet!alisa.com!denny)
-