home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume8
/
libhoward
/
part08
/
new-MakeC.b
< prev
next >
Wrap
Text File
|
1989-10-01
|
2KB
|
68 lines
# new-MakeC.b - create a new MakeCommon file from a prototype
#
# $Header: new-MakeC.b,v 1.1 89/09/21 12:48:58 howard Exp $
#
# Copyright 1989 Howard Lee Gayle
# This file is written in the ISO 8859/1 character set.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 1,
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# Shell variables:
# c - '#'
# d - '$'
# f - steps through files to create
# u - usage string
CMDNAME=new-MakeC
export CMDNAME
u="Usage: $CMDNAME file..."
if [ $# -eq 0 ]
then
echo "$u" 1>&2
exit 1
fi
c='#'
d='$'
for f
do
cat << EOF > "$f"
$c $f - common definitions for uMakefile and Makefile for ~
$c
$c ${d}Header$d
$c
EOF
if [ "$NEWTEXTPATH" ]
then
cat-path "$NEWTEXTPATH" new.txt | sed -e "s;^;$c ;" >> "$f"
fi
cat << 'EOF' >> "$f"
# Change mode of a file.
CHMOD=chmod
# Get a file from the distribution directory.
DISTI=mkDistI
# Remove a file.
RM=zap -f
# Uncompress if necessary and check out from RCS or SCCS.
UNCMPRS=mkUncmprs
# C include file search path.
INCLUDES=-I/usr/local/local-include -I/usr/local/free/howard/0/include
EOF
done