1994-06-24 11:31:16 +00:00
|
|
|
: '$Id$'
|
1991-10-15 16:02:38 +00:00
|
|
|
|
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
|
1993-11-05 13:12:46 +00:00
|
|
|
case `ack_sys` in
|
|
|
|
sparc_solaris)
|
|
|
|
ed - /tmp/mk_mak$$ << 'EOF'
|
|
|
|
g/^EXTRALIB/s/=/= -lelf/
|
|
|
|
w
|
|
|
|
q
|
|
|
|
EOF
|
|
|
|
;;
|
|
|
|
esac
|
1991-11-14 09:35:36 +00:00
|
|
|
cat /tmp/mk_mak$$
|
1991-10-15 16:02:38 +00:00
|
|
|
exit 0
|