Update to use modern make meta-variables. Fix the $Id$ both.

This commit is contained in:
phk 1996-06-30 18:02:58 +00:00
parent 6dc685b9ff
commit 0cc3a92e00

View File

@ -1,5 +1,5 @@
:
# $Id$
# $Id: mkMakefile.sh,v 1.1 1996/06/26 17:47:14 phk Exp $
#
# This script generates a bmake Makefile for src/lib/libtcl
#
@ -36,7 +36,8 @@ echo '$' >> ${LIBTCL}Makefile
# Tell 'em !
echo '# This file is generated automatically, think twice!' >> ${LIBTCL}Makefile
echo '# Please change src/tools/tools/tcl_bmake/mkMakefile.sh instead' >> ${LIBTCL}Makefile
echo '# Generated by version $Id$ of src/tools/tools/tcl_bmake/mkMakefile.sh' >> ${LIBTCL}Makefile
echo '# Generated by src/tools/tools/tcl_bmake/mkMakefile.sh version:' >> ${LIBTCL}Makefile
echo '# $Id$' | tr -d '$' >> ${LIBTCL}Makefile
echo >> ${LIBTCL}Makefile
# Tell make(1) to pick up stuff from here
@ -91,10 +92,14 @@ beforeinstall: ${TCLDIST}/generic/tcl.h tcl.macros
tcl.macros ${DESTDIR}/usr/share/tmac/tcl.macros
tcl.macros: ${TCLDIST}/doc/man.macros
cp $> $@
cp ${.ALLSRC} ${.TARGET}
' >> ${LIBTCL}Makefile
echo '
SEDARG="/\.so *man.macros/s;.*;.so /usr/share/tmac/tcl.macros;"
' >> ${LIBTCL}Makefile
# The (n) manpages
for i in ${SRCDIR}/doc/*.n
do
@ -102,7 +107,7 @@ do
{
print ""
print $1 ".n: ${TCLDIST}/doc/" B ".n"
print "\tsed \"/\.so *man.macros/s;.*;.so /usr/share/tmac/tcl.macros;\" < \$> > \$@"
print "\tsed ${SEDARG} < \${.ALLSRC} > \${.TARGET}"
print ""
print "MANn+= " $1 ".n "
}
@ -124,7 +129,7 @@ do
{
print ""
print $1 ".3: ${TCLDIST}/doc/" B ".3"
print "\tsed \"/\.so *man.macros/s;.*;.so /usr/share/tmac/tcl.macros;\" < \$> > \$@"
print "\tsed ${SEDARG} < \${.ALLSRC} > \${.TARGET}"
print ""
print "MAN3+= " $1 ".3 "
for (i = 2 ; i <= NF ; i++)