diff options
-rwxr-xr-x | do-link | 5 | ||||
-rwxr-xr-x | libpack.do | 3 | ||||
-rwxr-xr-x | test.do | 3 | ||||
-rwxr-xr-x | test_gen.do | 3 |
4 files changed, 8 insertions, 6 deletions
@@ -1,8 +1,7 @@ #!/usr/bin/env bash set -e -type=$1 -. "$2" # .do file which we are "interpreting" +. "$1" # .do file which we are "interpreting" redo-ifchange "$0" "link-$type.tool" "${objects[@]}" -shift 2 +shift . "./link-$type.tool" "${cmd[@]}" @@ -1,2 +1,3 @@ -#!./do-link library +#!/usr/bin/env ./do-link +type=library objects=(common.o pack.o trace.o unpack.o ieee754b.o) @@ -1,2 +1,3 @@ -#!./do-link executable +#!/usr/bin/env ./do-link +type=executable objects=(common.o pack.o test.o trace.o unpack.o ieee754b.o) diff --git a/test_gen.do b/test_gen.do index cffe9df..b4b480a 100755 --- a/test_gen.do +++ b/test_gen.do @@ -1,2 +1,3 @@ -#!./do-link executable-host +#!/usr/bin/env ./do-link +type=executable-host objects=(test_gen.o) |