ack/first/mk_makefile

26 lines
396 B
Plaintext
Raw Normal View History

1991-10-15 16:02:38 +00:00
: '$Header$'
1991-11-14 09:35:36 +00:00
: This shell script inserts make macros after a line
1991-10-15 16:02:38 +00:00
: starting with #PARAMS in "make_proto", and produces the result on
: standard output.
1991-11-14 09:35:36 +00:00
trap "rm -f /tmp/mk_mak$$" 0 1 2 3 15
1991-10-15 16:02:38 +00:00
case $# in
1991-11-14 09:35:36 +00:00
1) ;;
*) echo "Usage: $0 <make_proto>" 1>&2
1991-10-15 16:02:38 +00:00
exit 1
;;
esac
1991-11-14 09:35:36 +00:00
cp $1 /tmp/mk_mak$$
ed - /tmp/mk_mak$$ << 'EOF'
/^#PARAMS/c
#PARAMS do not remove this line!
.
w
q
EOF
cat /tmp/mk_mak$$
1991-10-15 16:02:38 +00:00
exit 0