diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2021-02-11 12:15:12 +0000 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2021-02-11 14:25:14 +0000 |
commit | bb97e8aaa15217afe1f3fcdc93662ab03b8ae9d9 (patch) | |
tree | 64fa5b5ba419e72bc6acaddadbc51c73646295fa /.parse-depfile | |
download | luiml-bb97e8aaa15217afe1f3fcdc93662ab03b8ae9d9.tar.gz luiml-bb97e8aaa15217afe1f3fcdc93662ab03b8ae9d9.tar.xz luiml-bb97e8aaa15217afe1f3fcdc93662ab03b8ae9d9.zip |
init commit
Diffstat (limited to '.parse-depfile')
-rwxr-xr-x | .parse-depfile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.parse-depfile b/.parse-depfile new file mode 100755 index 0000000..cad20d9 --- /dev/null +++ b/.parse-depfile @@ -0,0 +1,15 @@ +#!/usr/bin/sed -f +# remove target +1s/^[^:]*: // +# collapse lines +:loop +/\\$/ { + N + s/ \\\n// + b loop +} +# split on unescaped spaces +s/\([^\]\) /\1\ +/g +# unescape spaces +s/\\ / /g |