diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-18 15:25:58 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-19 08:18:16 +0100 |
commit | 2f9ee54cb7fa8767e43515bde1969f74be2533a8 (patch) | |
tree | 84a956682ffb760dd1f093c6a197c54146f8a3fd /autogen.sh | |
parent | loplugin:useuniqueptr in EditFieldInfo (diff) | |
download | core-2f9ee54cb7fa8767e43515bde1969f74be2533a8.tar.gz core-2f9ee54cb7fa8767e43515bde1969f74be2533a8.zip |
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-x | autogen.sh | 1 |
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 "'" ) { |