diff options
author | Josh Heidenreich <josh.sickmate@gmail.com> | 2012-03-13 08:57:16 +1030 |
---|---|---|
committer | Josh Heidenreich <josh.sickmate@gmail.com> | 2012-03-13 08:58:31 +1030 |
commit | 6635337181c3c3530ceaa2fb49330c2b152107d7 (patch) | |
tree | 06d4a715d6cab0dfab559733f191abac7bf7b750 /autogen.sh | |
parent | SwFlowFrm::CalcUpperSpace: fix crash with null pPrevFrm in framework_unoapi (diff) | |
download | core-6635337181c3c3530ceaa2fb49330c2b152107d7.tar.gz core-6635337181c3c3530ceaa2fb49330c2b152107d7.zip |
Fix authgen.sh to not clobber autogen.lastrun when using --help
Fix also works for -h and -?
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 8 |
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"; |