diff options
author | peter <peter@FreeBSD.org> | 1996-09-05 19:05:57 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-09-05 19:05:57 +0000 |
commit | 6379e4d1255a616e38558dc13ed4dd996b56338d (patch) | |
tree | 08237ae35fc2036f2f99bc6f229c082d45cc9635 /tools | |
parent | 835e9e65ddd17ad9f1b572d43f2613611fc5d02d (diff) | |
download | FreeBSD-src-6379e4d1255a616e38558dc13ed4dd996b56338d.zip FreeBSD-src-6379e4d1255a616e38558dc13ed4dd996b56338d.tar.gz |
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. :-(
Diffstat (limited to 'tools')
-rw-r--r-- | tools/tools/tcl_bmake/mkMakefile.sh | 35 |
1 files changed, 32 insertions, 3 deletions
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 <bsd.lib.mk> ' >> ${LIBTCL}Makefile |