summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-18 15:25:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-19 08:18:16 +0100
commit2f9ee54cb7fa8767e43515bde1969f74be2533a8 (patch)
tree84a956682ffb760dd1f093c6a197c54146f8a3fd /autogen.sh
parent74403516c94a49d8878eb5c0224e6994f204cd2a (diff)
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@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh1
1 files changed, 1 insertions, 0 deletions
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 "'" ) {