summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-06-30 18:02:58 +0000
committerphk <phk@FreeBSD.org>1996-06-30 18:02:58 +0000
commit6f1ef88a92fb73bf06322512b4e46c91f62f7dd5 (patch)
tree7d5fb419a56194675fc02b1f4392213f28980706
parentfbbce4b7586a43a16497fe8268f8960a9aee7d55 (diff)
downloadFreeBSD-src-6f1ef88a92fb73bf06322512b4e46c91f62f7dd5.zip
FreeBSD-src-6f1ef88a92fb73bf06322512b4e46c91f62f7dd5.tar.gz
Update to use modern make meta-variables. Fix the $Id$ both.
-rw-r--r--tools/tools/tcl_bmake/mkMakefile.sh15
1 files changed, 10 insertions, 5 deletions
diff --git a/tools/tools/tcl_bmake/mkMakefile.sh b/tools/tools/tcl_bmake/mkMakefile.sh
index 6072df7..74ffbe5 100644
--- a/tools/tools/tcl_bmake/mkMakefile.sh
+++ b/tools/tools/tcl_bmake/mkMakefile.sh
@@ -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++)
OpenPOWER on IntegriCloud