3 # $Id: install-catman.sh,v 1.1 2000/11/30 01:38:17 joda Exp $
5 # install preformatted manual pages
7 INSTALL_DATA="$1"; shift
8 mkinstalldirs="$1"; shift
14 base=`echo "$f" | sed 's/\(.*\)\.\([^.]*\)$/\1/'`
15 section=`echo "$f" | sed 's/\(.*\)\.\([^.]*\)$/\2/'`
16 catdir="$mandir/cat$section"
18 if test -f "$srcdir/$c"; then
19 if test \! -d "$catdir"; then
20 eval "$mkinstalldirs $catdir"
22 eval "echo $INSTALL_DATA $srcdir/$c $catdir/$base.$suffix"
23 eval "$INSTALL_DATA $srcdir/$c $catdir/$base.$suffix"