summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorJosh Heidenreich <josh.sickmate@gmail.com>2012-03-13 08:57:16 +1030
committerJosh Heidenreich <josh.sickmate@gmail.com>2012-03-13 08:58:31 +1030
commit6635337181c3c3530ceaa2fb49330c2b152107d7 (patch)
tree06d4a715d6cab0dfab559733f191abac7bf7b750 /autogen.sh
parentb7c2124b39e8a93c8dadfaec5257e491da9fdda1 (diff)
Fix authgen.sh to not clobber autogen.lastrun when using --help
Fix also works for -h and -?
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index 2935619b3f80..78a6f6734bc5 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -86,6 +86,14 @@ sub invalid_distro($$)
closedir ($dirh);
}
+# Handle help arguments first, so we don't clobber autogen.lastrun
+for my $arg (@ARGV) {
+ if ($arg =~ /^(--help|-h|-\?)$/) {
+ system ("./configure --help");
+ exit;
+ }
+}
+
my @cmdline_args = ();
if (!@ARGV) {
my $lastrun = "autogen.lastrun";