From 6379e4d1255a616e38558dc13ed4dd996b56338d Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 5 Sep 1996 19:05:57 +0000 Subject: Sigh. That darn tcl source tree is damn strange. I missed the fact that the *.3 man pages are not installed with their distributed names, so all the links were messed up. :-( --- tools/tools/tcl_bmake/mkMakefile.sh | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/tools/tcl_bmake/mkMakefile.sh b/tools/tools/tcl_bmake/mkMakefile.sh index b359108..578d9c1 100644 --- a/tools/tools/tcl_bmake/mkMakefile.sh +++ b/tools/tools/tcl_bmake/mkMakefile.sh @@ -1,5 +1,5 @@ #! /bin/sh -# $Id: mkMakefile.sh,v 1.7 1996/08/29 16:46:14 chuckr Exp $ +# $Id: mkMakefile.sh,v 1.8 1996/08/29 19:30:50 peter Exp $ # # This script generates a bmake Makefile for src/lib/libtcl # @@ -40,7 +40,7 @@ echo '# # Please change src/tools/tools/tcl_bmake/mkMakefile.sh instead # # Generated by src/tools/tools/tcl_bmake/mkMakefile.sh version: -# $Id: mkMakefile.sh,v 1.7 1996/08/29 16:46:14 chuckr Exp $ +# $Id: mkMakefile.sh,v 1.8 1996/08/29 19:30:50 peter Exp $ # ' | tr -d '$' >> ${LIBTCL}Makefile @@ -132,7 +132,15 @@ $s/ \\$// echo >> ${LIBTCL}Makefile # The (3) manpages -(cd ${SRCDIR}/doc; echo *.3) | fmt 60 65 | sed ' +for i in ${SRCDIR}/doc/*.3 +do + sed ' + 1,/^.SH NAME/d + /^.SH SYNOPSIS/,$d + ' $i | sed -n ' + 1s/[, \\].*//p + ' +done | fmt 60 65 | sed ' s/^/ / s/$/ \\/ 1s/ /MAN3+= / @@ -158,6 +166,27 @@ do done echo ' +# Ugly, I know, but what else can I do?!? +' >> ${LIBTCL}Makefile + +for i in ${SRCDIR}/doc/*.3 +do + sed ' + 1,/^.SH NAME/d + /^.SH SYNOPSIS/,$d + s/,//g + ' $i | sed -n ' + 1s/\\-.*//p + ' | awk ' + { + print "" + print $1 ".3: ${TCLDIST}/doc/" B ".3" + print "\tln -s \${.ALLSRC} \${.TARGET}" + } + ' B=`basename $i` .3 >> ${LIBTCL}Makefile +done + +echo ' .include ' >> ${LIBTCL}Makefile -- cgit v1.1