pkgsrc-Changes archive

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

CVS commit: pkgsrc/bootstrap



Module Name:    pkgsrc
Committed By:   rillig
Date:           Sun Nov 11 19:31:54 UTC 2018

Modified Files:
        pkgsrc/bootstrap: bootstrap

Log Message:
bootstrap/bootstrap: detect unknown options and print usage

Running bootstrap with short options (like -q for --quiet) is not
implemented. Therefore, instead of silently ignoring such options, fail
with an appropriate error message.


To generate a diff of this commit:
cvs rdiff -u -r1.258 -r1.259 pkgsrc/bootstrap/bootstrap

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/bootstrap/bootstrap
diff -u pkgsrc/bootstrap/bootstrap:1.258 pkgsrc/bootstrap/bootstrap:1.259
--- pkgsrc/bootstrap/bootstrap:1.258    Fri Nov  9 13:37:09 2018
+++ pkgsrc/bootstrap/bootstrap  Sun Nov 11 19:31:54 2018
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# $NetBSD: bootstrap,v 1.258 2018/11/09 13:37:09 jperkin Exp $
+# $NetBSD: bootstrap,v 1.259 2018/11/11 19:31:54 rillig Exp $
 #
 # Copyright (c) 2001-2011 Alistair Crooks <agc%NetBSD.org@localhost>
 # All rights reserved.
@@ -463,7 +463,8 @@ while [ $# -gt 0 ]; do
        --quiet)        quiet=yes ;;
        --help)         echo "$usage"; exit ;;
        -h)             echo "$usage"; exit ;;
-       --*)            echo "$usage"; exit 1 ;;
+       -*)             echo "${0##*/}: unknown option \"$1\"" 1>&2
+                       echo "$usage" 1>&2; exit 1 ;;
        esac
        shift
 done



Home | Main Index | Thread Index | Old Index