Match man_MANS = files with directories in them.
authorLove Hörnquist Åstrand <lha@kth.se>
Tue, 25 Mar 2008 12:58:05 +0000 (12:58 +0000)
committerLove Hörnquist Åstrand <lha@kth.se>
Tue, 25 Mar 2008 12:58:05 +0000 (12:58 +0000)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22779 ec53bebd-3082-4978-b11e-865c3cabbd6b

cf/install-catman.sh

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