chiark
/
gitweb
/
~mdw
/
cfd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b35a925
)
Don't clobber self-describing manpages.
author
mdw
<mdw>
Wed, 23 Apr 2003 12:47:09 +0000
(12:47 +0000)
committer
mdw
<mdw>
Wed, 23 Apr 2003 12:47:09 +0000
(12:47 +0000)
maninst
patch
|
blob
|
blame
|
history
diff --git
a/maninst
b/maninst
index 8ef9dc07bb1c726e921729a1421725e392dc3a1f..bdf5a0fedb106189b18aab8cf544cc42bb24371a 100755
(executable)
--- 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)
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"
;;
uninstall)
rm -f "$mandir/man$sec/$l.$sec$ext"