[Libreoffice-commits] core.git: autogen.sh

Stephan Bergmann sbergman at redhat.com
Fri Jan 19 07:18:38 UTC 2018


 autogen.sh |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 2f9ee54cb7fa8767e43515bde1969f74be2533a8
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Jan 18 15:25:58 2018 +0100

    Also strip leading whitespace from autogen.input lines
    
    ...which allows to align --enable/--disable switches on the part being en-/dis-
    abled, as in
    
    > --disable-assert-always-abort
    >  --enable-avahi
    >  --enable-breakpad
    >  --enable-build-unowinreg
    > --disable-ccache
    
    for better readability
    
    Change-Id: I490402c74ea1ee535deee6ef79274b588b614820
    Reviewed-on: https://gerrit.libreoffice.org/48130
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/autogen.sh b/autogen.sh
index a4bab811a36b..6af2cf71da80 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -77,6 +77,7 @@ sub read_args($)
     open ($fh, $file) || die "can't open file: $file";
     while (<$fh>) {
         chomp();
+        s/^\s+//;
         s/\s+$//;
         # migrate from the old system
         if ( substr($_, 0, 1) eq "'" ) {


More information about the Libreoffice-commits mailing list