diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2021-07-21 23:58:33 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2021-07-22 00:00:50 +0100 |
commit | 13b242e2fdfb020f29eaa302e1f7b0f6bb65395b (patch) | |
tree | bf99112846fdd4c1bb7e8a508abf7222a7ea9c5a /.parse-deps | |
parent | 7911c0536c03bca81304521bf7594366a6449044 (diff) | |
download | pack-13b242e2fdfb020f29eaa302e1f7b0f6bb65395b.tar.gz pack-13b242e2fdfb020f29eaa302e1f7b0f6bb65395b.tar.xz pack-13b242e2fdfb020f29eaa302e1f7b0f6bb65395b.zip |
.parse-depfile -> .parse-deps - as it's no longer used with files
Diffstat (limited to '.parse-deps')
-rwxr-xr-x | .parse-deps | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.parse-deps b/.parse-deps new file mode 100755 index 0000000..cad20d9 --- /dev/null +++ b/.parse-deps @@ -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 |