summaryrefslogtreecommitdiffstats
path: root/ship
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2013-11-06 16:06:55 +0100
committertv <tv@nomic.retiolum>2013-11-06 16:06:55 +0100
commit16a4cda248de734f3771c0bb721ec1834ad96cc8 (patch)
tree16b249e4504d739d555f13db707d03894b5717f4 /ship
parent2a5016b8d705dba4f0689882a04037381cb4374f (diff)
ship build: s/macro_*/build_*_macro/g
Without this the defmacro would have to do even more magic...^_^
Diffstat (limited to 'ship')
-rwxr-xr-xship/build6
1 files changed, 3 insertions, 3 deletions
diff --git a/ship/build b/ship/build
index d0302d7e..7755253d 100755
--- a/ship/build
+++ b/ship/build
@@ -8,7 +8,7 @@ build() {
## Load macro definitions.
defmacro_pattern='## usage: \(.*\) -> \([^ ]\+\) \(.*\)'
- script='s/^'"$defmacro_pattern"'$/macro_\2='"'"'\1'"'"'/p' \
+ script='s/^'"$defmacro_pattern"'$/\2_macro='"'"'\1'"'"'/p' \
setf defmacros '$(sed -n "$script" "$%s")' 0
eval "$defmacros"
@@ -42,7 +42,7 @@ EOF
## usage: build_compile SRCFILE DSTFILE
build_compile() {
- script='s/^'"$defmacro_pattern"'$/macro_\2/p' \
+ script='s/^'"$defmacro_pattern"'$/\2_macro/p' \
setf macro_names '$(sed -n "$script" "$%s")' 0
setf unexpanded_macros_pattern \
@@ -73,7 +73,7 @@ build_deps() {
while test $# -gt 0; do
deps="$(
for f; do
- for d in $(sed -n 's:^'"$macro_include"'$:\1:p' "$f"); do
+ for d in $(sed -n 's:^'"$build_include_macro"'$:\1:p' "$f"); do
build_resolve $d
done
done