]> arthur.barton.de Git - bup.git/commitdiff
Check the arguments passed to ./configure.
authorRob Browning <rlb@defaultvalue.org>
Sat, 12 Jan 2013 16:23:04 +0000 (10:23 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sun, 13 Jan 2013 17:12:03 +0000 (11:12 -0600)
For now, don't allow arguments, since ./configure doesn't actually
support any.  Previously "./configure --help" would print misleading
information, and any other arguments were silently ignored.

Thanks to Alexander Barton <alex@barton.de> for the report.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
configure

index d9626dcbb418fb633f72a9b2d1c7a67f749e708d..f7cb928936b56e64eb663da8a608f9f5672ed07d 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,3 +1,9 @@
 #!/bin/sh
+
+if test "$#" -gt 0; then
+    echo "Usage: configure" 1>&2
+    exit 1
+fi
+
 cd config &&
 exec ./configure "$@"