diff options
author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2016-02-15 11:31:30 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2016-02-15 11:02:23 +0000 |
commit | ae40500269059a24caaf390ebbc45de458960657 (patch) | |
tree | 914ecbaf538be182b41018b52479256d9ee7a017 /bin/qt5_tool | |
parent | bbd7a798279cf60376e94c82fc900495e764a068 (diff) | |
download | qtrepotools-ae40500269059a24caaf390ebbc45de458960657.tar.gz |
qt5_tool: Support continuation lines indicated by trailing \.
This makes the growing skip-list manageable again.
Change-Id: If418ed7d22411fda50a9e2ef8446954434524a2e
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
Diffstat (limited to 'bin/qt5_tool')
-rwxr-xr-x | bin/qt5_tool | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/qt5_tool b/bin/qt5_tool index f864369..799ec07 100755 --- a/bin/qt5_tool +++ b/bin/qt5_tool @@ -96,6 +96,7 @@ shadowBuildPostfix-qt-5special=-special-build specifies that for a checkout in '/home/user/qt-5', shadow builds are to be done in '/home/user/qt-5-build'. It is overridden by a value for the checkout '/home/user/qt-5special', which would result in '/home/user/qt-5-special-build' +Continuation lines are indicated by a trailing backslash (\\). EOF # --------------- Detect OS @@ -334,6 +335,13 @@ sub readConfigFile chomp($line); if ($line =~ /^\s*$key\s*=\s*(.*)$/) { $configLine .= $1; + while (index($configLine, '\\') == length($configLine) - 1) { # continuation lines "a=b\", "continued..." + chop($configLine); + my $line = <$configFile>; + die('Trailing continuation line "' . $configLine . '"') unless defined $line; + chomp($line); + $configLine .= $line; + } last; } } |