home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume8 / libhoward / part08 / new-MakeC.b < prev    next >
Text File  |  1989-10-01  |  2KB  |  68 lines

  1.   
  2. # new-MakeC.b - create a new MakeCommon file from a prototype
  3. #
  4. # $Header: new-MakeC.b,v 1.1 89/09/21 12:48:58 howard Exp $
  5. #
  6. # Copyright 1989 Howard Lee Gayle
  7. # This file is written in the ISO 8859/1 character set.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License version 1,
  11. # as published by the Free Software Foundation.
  12. #
  13. # This program is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with this program; if not, write to the Free Software
  20. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21. #
  22. # Shell variables:
  23. # c - '#'
  24. # d - '$'
  25. # f - steps through files to create
  26. # u - usage string
  27.  
  28. CMDNAME=new-MakeC
  29. export CMDNAME
  30. u="Usage: $CMDNAME file..."
  31. if [ $# -eq 0 ]
  32. then
  33.    echo "$u" 1>&2
  34.    exit 1
  35. fi
  36. c='#'
  37. d='$'
  38. for f
  39. do
  40.    cat << EOF > "$f"
  41. $c $f - common definitions for uMakefile and Makefile for ~
  42. $c
  43. $c ${d}Header$d
  44. $c
  45. EOF
  46.    if [ "$NEWTEXTPATH" ]
  47.    then
  48.       cat-path "$NEWTEXTPATH" new.txt | sed -e "s;^;$c ;" >> "$f"
  49.    fi
  50.    cat << 'EOF' >> "$f"
  51.  
  52. # Change mode of a file.
  53. CHMOD=chmod
  54.  
  55. # Get a file from the distribution directory.
  56. DISTI=mkDistI
  57.  
  58. # Remove a file.
  59. RM=zap -f
  60.  
  61. # Uncompress if necessary and check out from RCS or SCCS.
  62. UNCMPRS=mkUncmprs
  63.  
  64. # C include file search path.
  65. INCLUDES=-I/usr/local/local-include -I/usr/local/free/howard/0/include
  66. EOF
  67. done
  68.