Fix broken qop.5 man page generation

$base should not include sub directories.  Filter them out.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:
Eray Aslan
2012-05-23 11:08:09 +03:00
committed by Love Hornquist Astrand
parent 1614c49354
commit 06130cf7bf

View File

@@ -14,7 +14,7 @@ catinstall="${INSTALL_CATPAGES-yes}"
for f in "$@"; do
echo $f
base=`echo "$f" | sed 's/\.[^.]*$//'`
base=`echo "$f" | sed 's~\.[^.]*$~~; s~.*/~~'`
section=`echo "$f" | sed 's/^[^.]*\.//'`
mandir="$manbase/man$section"
catdir="$manbase/cat$section"