[Libreoffice-commits] .: autogen.sh

Josh Heidenreich jheidenreich at kemper.freedesktop.org
Mon Mar 12 15:29:53 PDT 2012


 autogen.sh |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit 6635337181c3c3530ceaa2fb49330c2b152107d7
Author: Josh Heidenreich <josh.sickmate at gmail.com>
Date:   Tue Mar 13 08:57:16 2012 +1030

    Fix authgen.sh to not clobber autogen.lastrun when using --help
    
    Fix also works for -h and -?

diff --git a/autogen.sh b/autogen.sh
index 2935619..78a6f67 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";


More information about the Libreoffice-commits mailing list