Tidy up the shell scripts somewhat.
[cfd] / maninst
diff --git a/maninst b/maninst
index cb238c5..25ea78d 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"