diff options
author | Jan Holesovsky <kendy@suse.cz> | 2012-11-07 16:57:05 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2012-11-07 16:58:22 +0100 |
commit | f9c89b0662a3ffbf8af082451beda45f1087738d (patch) | |
tree | bbd87f8ffe5f76bb519e6f5764f77201e35d416d /solenv/bin | |
parent | c8eb6910cd41901daf2f4192c0b3e583a20adc90 (diff) |
Eat unneeded spaces at the beginning of .d files, they confuse concat-deps.
Change-Id: I541fb875d4d0bc46eb1bbb21793343c0283fd412
Diffstat (limited to 'solenv/bin')
-rw-r--r-- | solenv/bin/concat-deps.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/solenv/bin/concat-deps.c b/solenv/bin/concat-deps.c index 6db6e7197988..843cad1e6b17 100644 --- a/solenv/bin/concat-deps.c +++ b/solenv/bin/concat-deps.c @@ -892,6 +892,12 @@ off_t size; { base = cursor_out = cursor = end = buffer; end += size; + + /* first eat unneeded space at the beginning of file + */ + while(cursor < end && (*cursor == ' ' || *cursor == '\\')) + ++cursor; + while(cursor < end) { if(*cursor == '\\') |