summaryrefslogtreecommitdiff
path: root/maintainer-scripts
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-10 01:08:52 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-10 01:08:52 +0000
commitbabdb60f79d20d3a2b233338b360d9b14c1ace50 (patch)
tree885655ab43e2c3d64032d24ab7856e01888039ef /maintainer-scripts
parent25343425782b5cedb6533a3309a4e17f2bb197bf (diff)
downloadgcc-babdb60f79d20d3a2b233338b360d9b14c1ace50.tar.gz
* gcc_release: Build diffs for ada and chill. Make "bzip2" a new
major mode. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50516 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'maintainer-scripts')
-rw-r--r--maintainer-scripts/ChangeLog5
-rwxr-xr-xmaintainer-scripts/gcc_release18
2 files changed, 18 insertions, 5 deletions
diff --git a/maintainer-scripts/ChangeLog b/maintainer-scripts/ChangeLog
index 0d25f0c4f39..c605e468e06 100644
--- a/maintainer-scripts/ChangeLog
+++ b/maintainer-scripts/ChangeLog
@@ -1,3 +1,8 @@
+2002-03-10 Joseph S. Myers <jsm28@cam.ac.uk>
+
+ * gcc_release: Build diffs for ada and chill. Make "bzip2" a new
+ major mode.
+
2002-03-06 Phil Edwards <pme@gcc.gnu.org>
* update_version: Don't indent the version string.
diff --git a/maintainer-scripts/gcc_release b/maintainer-scripts/gcc_release
index 1ede1f2c29e..1486b6c3efe 100755
--- a/maintainer-scripts/gcc_release
+++ b/maintainer-scripts/gcc_release
@@ -283,12 +283,13 @@ build_tarfiles() {
done
build_tarfile gcc-core-${RELEASE} ${EXCLUDES} \
`basename ${SOURCE_DIRECTORY}`
+}
- # Build .bz2 files.
+# Build .bz2 files.
+build_bzip2() {
for f in ${FILE_LIST}; do
bzfile=${f%.gz}.bz2
(zcat $f | ${BZIP2} > ${bzfile}) || error "Could not create ${bzfile}"
- FILE_LIST="${FILE_LIST} ${bzfile}"
done
}
@@ -299,7 +300,7 @@ build_diffs() {
old_vers=${old_file%.tar.gz}
old_vers=${old_vers#gcc-}
inform "Building diffs against version $old_vers"
- for f in gcc gcc-g++ gcc-g77 gcc-java gcc-objc gcc-testsuite gcc-core; do
+ for f in gcc gcc-ada gcc-chill gcc-g++ gcc-g77 gcc-java gcc-objc gcc-testsuite gcc-core; do
old_tar=${old_dir}/${f}-${old_vers}.tar.gz
new_tar=${WORKING_DIRECTORY}/${f}-${RELEASE}.tar.gz
if [ -e $old_tar ] && [ -e $new_tar ]; then
@@ -428,12 +429,13 @@ SNAPSHOT=0
LOCAL=0
# Major operation modes.
+MODE_BZIP2=0
MODE_DIFFS=0
MODE_SOURCES=0
MODE_TARFILES=0
MODE_UPLOAD=0
-# Files generated to upload.
+# .gz files generated to create .bz2 files from.
FILE_LIST=""
# Programs we use.
@@ -561,11 +563,12 @@ export CVSROOT
# Handle the major modes.
while [ $# -ne 0 ]; do
case $1 in
+ bzip2) MODE_BZIP2=1;;
diffs) MODE_DIFFS=1;;
sources) MODE_SOURCES=1;;
tarfiles) MODE_TARFILES=1;;
upload) MODE_UPLOAD=1;;
- all) MODE_SOURCES=1; MODE_TARFILES=1; MODE_DIFFS=1; MODE_UPLOAD=1;;
+ all) MODE_SOURCES=1; MODE_TARFILES=1; MODE_DIFFS=1; MODE_BZIP2=1; MODE_UPLOAD=1;;
*) error "Unknown mode $1";;
esac
shift
@@ -594,6 +597,11 @@ if [ $MODE_DIFFS -ne 0 ]; then
fi
fi
+# Build bzip2 files
+if [ $MODE_BZIP2 -ne 0 ]; then
+ build_bzip2
+fi
+
# Upload them to the FTP server.
if [ $MODE_UPLOAD -ne 0 ]; then