2 # this script is generated by the configure-script
10 datadir="${prefix}/share"
11 MKDIRS="mkinstalldirs"
12 INSTALL="/usr/bin/install -c"
13 INSTALL_DATA="${INSTALL} -m 644"
14 TMP=${TMPDIR-/tmp}/man$$
15 trap "rm -f $TMP" 0 1 2 5 15
21 section=`expr "$i" : '.*\.\([0-9]\)[xm]*'`;
22 if [ ! -d $mandir/man${section} ]; then
23 $MKDIRS $mandir/man$section
26 target=`grep "^$source" man/man_db.renames | awk '{print $2}'`
27 if test -z "$target" ; then
28 echo '? missing rename for '$source
31 target="$mandir/man$section/$target"
32 sed -e 's,@DATADIR@,$datadir,' < $i | sed -f ${edit_man_sed} >$TMP
33 echo installing $target
34 $INSTALL_DATA $TMP $target