diff options
author | tv <tv@nomic.retiolum> | 2013-11-06 16:06:55 +0100 |
---|---|---|
committer | tv <tv@nomic.retiolum> | 2013-11-06 16:06:55 +0100 |
commit | 16a4cda248de734f3771c0bb721ec1834ad96cc8 (patch) | |
tree | 16b249e4504d739d555f13db707d03894b5717f4 /ship/build | |
parent | 2a5016b8d705dba4f0689882a04037381cb4374f (diff) |
ship build: s/macro_*/build_*_macro/g
Without this the defmacro would have to do even more magic...^_^
Diffstat (limited to 'ship/build')
-rwxr-xr-x | ship/build | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |