mk_makefile 287 B

123456789101112131415
  1. : '$Header$'
  2. : This shell script inserts the file "make_macros" after a line
  3. : starting with #PARAMS in "make_proto", and produces the result on
  4. : standard output.
  5. case $# in
  6. 2) ;;
  7. *) echo "Usage: $0 <make_macros> <make_proto>" 1>&2
  8. exit 1
  9. ;;
  10. esac
  11. sed -e "/^#PARAMS/r $1" $2
  12. exit 0