pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/scripts Don't accept anything besides the known opt...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/78790901bb5d
branches:  trunk
changeset: 503319:78790901bb5d
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri Nov 18 10:55:30 2005 +0000

description:
Don't accept anything besides the known options on the command line. As
no additional parameters are used it's better to reject them.

diffstat:

 mk/scripts/mkdatabase |  9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diffs (27 lines):

diff -r 238b901f8bbe -r 78790901bb5d mk/scripts/mkdatabase
--- a/mk/scripts/mkdatabase     Fri Nov 18 10:51:53 2005 +0000
+++ b/mk/scripts/mkdatabase     Fri Nov 18 10:55:30 2005 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: mkdatabase,v 1.6 2005/11/18 10:51:53 rillig Exp $
+# $NetBSD: mkdatabase,v 1.7 2005/11/18 10:55:30 rillig Exp $
 #
 # Script for generating a database with complete dependency information
 # for a particular package
@@ -128,15 +128,10 @@
        exit 0
         ;;
 
-    -*) echo "$prog:  ERROR:  $1 is not a valid option"
+    *) echo "$prog:  ERROR:  $1 is not a valid option"
        usage
        exit 1
        ;;
-
-    *) 
-       break
-       ;;
-
     esac
 done
 



Home | Main Index | Thread Index | Old Index