chiark
/
gitweb
/
~mdw
/
cfd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Tidy up the shell scripts somewhat.
[cfd]
/
maninst
diff --git
a/maninst
b/maninst
index cb238c54cd7fe6750397cc5d197ee4570c33cb65..25ea78d766b2e72732842432253d72b55ea07133 100755
(executable)
--- a/
maninst
+++ b/
maninst
@@
-24,8
+24,7
@@
case $op in
*) echo >&2 "$0: unknown operation \`$1'"; exit 1 ;;
esac
for i; do
- base=`echo "$i" | sed 's:^.*/::'`
- sec=`echo "$base" | sed 's:^.*\.::'`
+ base=${i##*/} src=${base##*.}
case $op in
install)
echo -n " Installing manpage $base$ext"