summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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