aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2021-08-05 11:27:24 +0100
committerTomasz Kramkowski <tk@the-tk.com>2021-08-05 11:27:24 +0100
commit1bfd9a05a71e3ec729b65ff040a2496b7b1f8a23 (patch)
tree77730ef41c413780f72bf671d35dd972bd47d351
parent68b64352f02980b3b5a7ea47886e95151164c5a4 (diff)
downloadpack-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--.licignore2
-rw-r--r--[-rwxr-xr-x].parse-deps.sed (renamed from .parse-deps)1
-rwxr-xr-xdefault.o.do4
3 files changed, 3 insertions, 4 deletions
diff --git a/.licignore b/.licignore
index 4ac0ff0..c35173f 100644
--- a/.licignore
+++ b/.licignore
@@ -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