chiark
/
gitweb
/
~ijackson
/
trains.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
only autoflush if the message ends with \n
[trains.git]
/
layout
/
make-dgram-make
1
#!/bin/sh
2
set -e
3
stem=$1
4
echo '# autogenerated'
5
while read dgram args; do
6
cat <<END
7
$stem.dgram-$dgram.run-layout: $stem.d4 layout $stem.dgram.m
8
printf '#!/bin/sh -ex\n./layout "\$\$@" %s \$<\n' "$args" >\$@.new
9
chmod +x \$@.new && mv -f \$@.new \$@
10
11
END
12
done