Match man_MANS = files with directories in them.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22779 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-03-25 12:58:05 +00:00
parent bdfb8e33c6
commit a8bbc776e9

View File

@@ -13,8 +13,9 @@ suffix="$1"; shift
catinstall="${INSTALL_CATPAGES-yes}" catinstall="${INSTALL_CATPAGES-yes}"
for f in "$@"; do for f in "$@"; do
base=`echo "$f" | sed 's/\(.*\)\.\([^.]*\)$/\1/'` echo $f
section=`echo "$f" | sed 's/\(.*\)\.\([^.]*\)$/\2/'` base=`echo "$f" | sed 's/\([^/]*\/\)*\(.*\)\.\([^.]*\)$/\2/'`
section=`echo "$f" | sed 's/\([^/]*\/\)*\(.*\)\.\([^.]*\)$/\3/'`
mandir="$manbase/man$section" mandir="$manbase/man$section"
catdir="$manbase/cat$section" catdir="$manbase/cat$section"
c="$base.cat$section" c="$base.cat$section"