diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2021-08-05 11:27:24 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2021-08-05 11:27:24 +0100 |
commit | 1bfd9a05a71e3ec729b65ff040a2496b7b1f8a23 (patch) | |
tree | 77730ef41c413780f72bf671d35dd972bd47d351 | |
parent | 68b64352f02980b3b5a7ea47886e95151164c5a4 (diff) | |
download | pack-1bfd9a05a71e3ec729b65ff040a2496b7b1f8a23.tar.gz pack-1bfd9a05a71e3ec729b65ff040a2496b7b1f8a23.tar.xz pack-1bfd9a05a71e3ec729b65ff040a2496b7b1f8a23.zip |
.parse-deps: No longer executable, called with sed -f
as #!/usr/bin/sed is not portable, it is easier to just use sed -f
-rw-r--r-- | .licignore | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | .parse-deps.sed (renamed from .parse-deps) | 1 | ||||
-rwxr-xr-x | default.o.do | 4 |
3 files changed, 3 insertions, 4 deletions
@@ -1,7 +1,7 @@ *.do .gitignore .licignore -.parse-deps +.parse-deps.sed LICENSE README.md clean diff --git a/.parse-deps b/.parse-deps.sed index e8dc74b..488782d 100755..100644 --- a/.parse-deps +++ b/.parse-deps.sed @@ -1,4 +1,3 @@ -#!/usr/bin/sed -f # remove target 1s/^[^:]*: // # collapse lines diff --git a/default.o.do b/default.o.do index 2a21e84..75a77d8 100755 --- a/default.o.do +++ b/default.o.do @@ -2,6 +2,6 @@ set -e redo-ifchg-pipe() { tr '\n' '\0' | xargs -r0 redo-ifchange; } src=${1%.o}.c -redo-ifchange .compile .parse-deps "$src" +redo-ifchange .compile .parse-deps.sed "$src" sed -n 's|.*@BUILD_DEP \(.*\)|\1|p' "$src" | redo-ifchg-pipe -. ./.compile | ./.parse-deps | redo-ifchg-pipe +. ./.compile | sed -f .parse-deps.sed | redo-ifchg-pipe |