swissChili | 2b5acc8 | 2021-03-13 17:06:42 -0800 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
3 | # Jay MaKe | ||||
4 | |||||
swissChili | f1aeec7 | 2021-06-07 21:41:15 -0700 | [diff] [blame^] | 5 | root="$(pwd)" |
swissChili | 2b5acc8 | 2021-03-13 17:06:42 -0800 | [diff] [blame] | 6 | jmkscript="$root/share/jmk/jmk.m4" |
7 | |||||
8 | for file in $(find -name Jmk); do | ||||
9 | echo "Processing $file" > /dev/stderr | ||||
10 | outdir="$(dirname $file)" | ||||
11 | m4 -D jmk_root="$root" -D jmk_build_cmd="$0" -D jmk_build_dir="$(pwd)" "$jmkscript" "$file" > "$outdir/Makefile" || exit 1 | ||||
12 | done |