diff --git a/tools/tools/tcl_bmake/mkMakefile.sh b/tools/tools/tcl_bmake/mkMakefile.sh index 29c035d7eab7..32b0a0d6573f 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.12 1996/09/20 14:12:17 bde Exp $ +# $Id: mkMakefile.sh,v 1.13 1996/10/27 12:44:44 wosch Exp $ # # This script generates a bmake Makefile for src/lib/libtcl # @@ -29,9 +29,14 @@ bar: ' >> m.x # Put a RCS Id in the file, but not the one from this file :-) -echo -n '# $' > ${LIBTCL}Makefile -echo -n 'Id' >> ${LIBTCL}Makefile -echo '$' >> ${LIBTCL}Makefile +if [ -f ${LIBTCL}Makefile ]; then + rcsid=`head -1 ${LIBTCL}Makefile` + echo "${rcsid}" > ${LIBTCL}Makefile +else + echo -n '# $' > ${LIBTCL}Makefile + echo -n 'Id' >> ${LIBTCL}Makefile + echo '$' >> ${LIBTCL}Makefile +fi # Tell 'em ! echo '# @@ -40,7 +45,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.12 1996/09/20 14:12:17 bde Exp $ +# $Id: mkMakefile.sh,v 1.13 1996/10/27 12:44:44 wosch Exp $ # ' | tr -d '$' >> ${LIBTCL}Makefile @@ -72,7 +77,7 @@ LIB= tcl .if !defined(NOPIC) LINKS+= ${SHLIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ - ${SHLIBDIR}/lib${LIB}${SHLIB_MAJOR}.so.1.0 + ${SHLIBDIR}/lib${LIB}${SHLIB_MAJOR}.so.1.${SHLIB_MINOR} .endif LINKS+= ${LIBDIR}/lib${LIB}.a ${LIBDIR}/lib${LIB}${SHLIB_MAJOR}.a ' >> ${LIBTCL}Makefile @@ -195,11 +200,11 @@ _tclprev=${_tclpage} .endfor CLEANFILES+= ${_tcltmp} +.include EOF -echo ' -.include ' >> ${LIBTCL}Makefile - -sed -e '/^TCL.*_LIB_SPEC=/s/-L.* //' < ${SRCDIR}/unix/tclConfig.sh > ${LIBTCL}/tclConfig.sh +sed < ${SRCDIR}/unix/tclConfig.sh > ${LIBTCL}/tclConfig.sh \ + -e '/^TCL.*_LIB_SPEC=/s/-L.* //' \ + -e "s/1\.0/1.${SHLIB_MINOR}/" rm -f m.x ${SRCDIR}/unix/config.log ${SRCDIR}/unix/Makefile ${SRCDIR}/unix/config.cache ${SRCDIR}/unix/config.status ${SRCDIR}/unix/tclConfig.sh