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