X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/b35a925972c89566d7833d1d9564169452fe4f4c..02c378f34a03892e2db0277f6a9a64c1dc38b85a:/maninst diff --git a/maninst b/maninst index 8ef9dc07..bdf5a0fe 100755 --- a/maninst +++ b/maninst @@ -39,9 +39,11 @@ for i; do for l in `sed 's:^\.\\\" *@::p; d' "$srcdir/$i"`; do case $op in install) - echo -n "." - echo ".so man$sec/$base$ext" >"$mandir/man$sec/$l.$sec$ext" - chmod $mode "$mandir/man$sec/$l.$sec$ext" + if [ "$l.$sec" != "$base" ]; then + echo -n "." + echo ".so man$sec/$base$ext" >"$mandir/man$sec/$l.$sec$ext" + chmod $mode "$mandir/man$sec/$l.$sec$ext" + fi ;; uninstall) rm -f "$mandir/man$sec/$l.$sec$ext"