Bug#277863: tetex-bin: update-updmap should run updmap command in the end
It would be even better with the following little patch:
- warn about -v being deprecated
- don't accept calls with non-option arguments
--- update-updmap.old 2004-11-30 12:04:33.000000000 +0100
+++ update-updmap 2004-11-30 12:03:56.000000000 +0100
@@ -56,7 +56,9 @@
while true; do
case "$1" in
--quiet) quiet=1; shift ;;
- -v) shift ;;
+ -v) printf "\
+${progname}'s -v option is deprecated. The default mode of operation is
+verbose, now. Please update your scripts accordingly.\n\n" >&2; shift ;;
--help) echo "$usage"; exit 0 ;;
--version) echo "$progname $version"; exit 0 ;;
--) shift; break ;;
@@ -65,6 +67,12 @@
esac
done
+# Non-option arguments are not allowed.
+if [ $# -ne 0 ]; then
+ echo "$usage" >&2
+ exit 1
+fi
+
if [ -L "$CFGFILE" ]; then
if [ $quiet = 0 ]; then
echo "$CFGFILE is a symbolic link; $progname won't do anything."
--
Florent
Reply to: