Use path based SHELL in Makefiles. It was suggested that this is a better solution for make for cases when there is no /usr/bin/env. See: https://github.com/purpleidea/mgmt/pull/694#discussion_r1015596204
14 lines
393 B
Bash
14 lines
393 B
Bash
#!/usr/bin/env bash
|
|
# port tests to txtar
|
|
for f in */main.mcl; do
|
|
echo $f == $(dirname $f)
|
|
cat $f | cat - $(dirname $f).txtar | sponge $(dirname $f).txtar
|
|
echo '-- main.mcl --' | cat - $(dirname $f).txtar | sponge $(dirname $f).txtar
|
|
done
|
|
|
|
#for f in *.txtar; do
|
|
# echo $f
|
|
# #cat $f | cat - $(dirname $f).txtar | sponge $(dirname $f).txtar
|
|
# echo '-- OUTPUT --' | cat - $f | sponge $f
|
|
#done
|