CVS "export" command rather than "checkout".
#!/bin/sh
-# $Id: make-dist-files,v 1.10 2000/12/27 18:26:32 cph Exp $
+# $Id: make-dist-files,v 1.11 2001/01/08 20:52:12 cph Exp $
#
-# Copyright (c) 2000 Massachusetts Institute of Technology
+# Copyright (c) 2000-2001 Massachusetts Institute of Technology
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
;;
esac
+. /scheme/v7/dist/release-prefix
+
BUILD_DIR="`pwd`/build-$$"
BINDIR=${BUILD_DIR}/usr/local/bin
AUXDIR=${BUILD_DIR}/usr/local/lib/mit-scheme
}
if [ "${DESTINATION}" = "" ]; then
- PRE="`/scheme/v7/dist/release-prefix`-ix86"
+ PRE="`get_release_prefix`-ix86"
make_tarfile "${PRE}-gnu-linux"
${INSTALL} /scheme/v7/dist/freebsd-bin/* ${BINDIR}/.
make_tarfile "${PRE}-freebsd"
#!/bin/sh
-# $Id: make-doc-files,v 1.13 2000/12/24 04:04:01 cph Exp $
+# $Id: make-doc-files,v 1.14 2001/01/08 20:52:15 cph Exp $
#
-# Copyright (c) 2000 Massachusetts Institute of Technology
+# Copyright (c) 2000-2001 Massachusetts Institute of Technology
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+. /scheme/v7/dist/release-prefix
+
INSTALL="install"
INSTALL_DATA="${INSTALL} -m 644"
DOCDIR="/scheme/v7/doc"
-PREFIX=`/scheme/v7/dist/release-prefix`
+PREFIX=`get_release_prefix`
+TAG=`get_release_tag`
TLDIR="`pwd`/${PREFIX}"
rm -rf ${TLDIR}
(
cd ${TLDIR}
- cvs -d /scheme/cvsroot checkout -P -d doc v7/doc
+ cvs -d /scheme/cvsroot export -r ${TAG} -d doc v7/doc
cd doc
autoconf
)
${INSTALL_DATA} ${DOCDIR}/ChangeLog ${TLDIR}/doc/.
-find ${TLDIR} -type d -name CVS -print|xargs rm -rf
make_tarfile texinfo
rm -rf ${TLDIR}
#!/bin/sh
-# $Id: make-src-files,v 1.14 2000/12/25 06:20:43 cph Exp $
+# $Id: make-src-files,v 1.15 2001/01/08 20:52:17 cph Exp $
#
-# Copyright (c) 2000 Massachusetts Institute of Technology
+# Copyright (c) 2000-2001 Massachusetts Institute of Technology
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+. /scheme/v7/dist/release-prefix
+
INSTALL="install"
INSTALL_DATA="${INSTALL} -m 644"
-PREFIX=`/scheme/v7/dist/release-prefix`
+PREFIX=`get_release_prefix`
+TAG=`get_release_tag`
+
rm -rf ${PREFIX}
mkdir ${PREFIX}
DESTINATION="${PREFIX}/src"
+(
+ cd /scheme/v7/src/runtime
+ TAG_STATUS="`cvs status -v version.scm | fgrep ${TAG}`"
+ if [ -z "${TAG_STATUS}" ]; then
+ cvs rtag ${TAG} v7/doc v7/src
+ fi
+)
+
(
cd ${PREFIX}
- cvs -d /scheme/cvsroot checkout -P -d src v7/src
+ cvs -d /scheme/cvsroot export -r ${TAG} -d src v7/src
cd src
./Setup.sh
)
-find ${DESTINATION} -type d -name CVS -print | xargs rm -rf
find ${DESTINATION} -type f -print | xargs chmod g-w
find ${DESTINATION} -type d -print | xargs chmod g-w
-#!/bin/sh
-get_release()
+
+# $Id: release-prefix,v 1.5 2001/01/08 20:52:20 cph Exp $
+#
+# Copyright (c) 2000-2001 Massachusetts Institute of Technology
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or (at
+# your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+get_release ()
{
- fgrep Release /scheme/v7/src/runtime/version.scm | awk '{ print $3 "." $4 "." $5 }' | tr -d \(\)\'
+ fgrep Release /scheme/v7/src/runtime/version.scm | awk '{ print $3 "." $4 "." $5 }' | tr -d \(\)\'
+}
+
+get_release_prefix ()
+{
+ echo "scheme-`get_release`"
+}
+
+get_release_tag ()
+{
+ echo "release-`get_release | tr . -`"
}
-echo "scheme-`get_release`"