aboutsummaryrefslogtreecommitdiff
path: root/maintainer-scripts
diff options
context:
space:
mode:
authorJoseph Myers <jsm28@cam.ac.uk>2001-10-24 04:15:38 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2001-10-24 04:15:38 +0100
commitdbff21c5205da06d4a40687b136b80edec6b4d9c (patch)
treef177c4bd592f2ebf89f41cb38afb7330ee753e93 /maintainer-scripts
parent322821b9ad320f6f0104844d6442b02c57da1a94 (diff)
gcc_release: Build snapshots from mainline.
* gcc_release: Build snapshots from mainline. Generate Ada and Chill tarballs. Correct error check when building diffs. Check for errors when building bzip2 files. * crontab: Use /sourceware/snapshot-tmp for building snapshots. From-SVN: r46456
Diffstat (limited to 'maintainer-scripts')
-rw-r--r--maintainer-scripts/ChangeLog7
-rw-r--r--maintainer-scripts/crontab2
-rwxr-xr-xmaintainer-scripts/gcc_release19
3 files changed, 21 insertions, 7 deletions
diff --git a/maintainer-scripts/ChangeLog b/maintainer-scripts/ChangeLog
index c65a083fffa..c1b296aed02 100644
--- a/maintainer-scripts/ChangeLog
+++ b/maintainer-scripts/ChangeLog
@@ -1,3 +1,10 @@
+2001-10-24 Joseph S. Myers <jsm28@cam.ac.uk>
+
+ * gcc_release: Build snapshots from mainline. Generate Ada and
+ Chill tarballs. Correct error check when building diffs. Check
+ for errors when building bzip2 files.
+ * crontab: Use /sourceware/snapshot-tmp for building snapshots.
+
2001-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
* crontab: Build weekly snapshots.
diff --git a/maintainer-scripts/crontab b/maintainer-scripts/crontab
index 1ac995c1550..2d9655dcf25 100644
--- a/maintainer-scripts/crontab
+++ b/maintainer-scripts/crontab
@@ -2,4 +2,4 @@
16 0 * * * sh /home/gccadmin/scripts/update_version -rgcc-3_0-branch
50 0 * * * sh /home/gccadmin/scripts/update_web_docs
55 0 * * * sh /home/gccadmin/scripts/update_web_docs_libstdcxx
-40 16 * * 1 sh /home/gccadmin/scripts/gcc_release -s -l -d /var/tmp all
+40 16 * * 1 sh /home/gccadmin/scripts/gcc_release -s -l -d /sourceware/snapshot-tmp all
diff --git a/maintainer-scripts/gcc_release b/maintainer-scripts/gcc_release
index 59d4711da7f..260266b153d 100755
--- a/maintainer-scripts/gcc_release
+++ b/maintainer-scripts/gcc_release
@@ -267,6 +267,8 @@ build_tarfiles() {
build_tarfile gcc-${RELEASE} `basename ${SOURCE_DIRECTORY}`
# Now, build one for each of the languages.
+ build_tarfile gcc-ada-${RELEASE} ${ADA_DIRS}
+ build_tarfile gcc-chill-${RELEASE} ${CHILL_DIRS}
build_tarfile gcc-g++-${RELEASE} ${CPLUSPLUS_DIRS}
build_tarfile gcc-g77-${RELEASE} ${FORTRAN_DIRS}
build_tarfile gcc-java-${RELEASE} ${JAVA_DIRS}
@@ -275,8 +277,8 @@ build_tarfiles() {
# The core is everything else.
EXCLUDES=""
- for x in ${CPLUSPLUS_DIRS} ${FORTRAN_DIRS} ${JAVA_DIRS} \
- ${OBJECTIVEC_DIRS} ${TESTSUITE_DIRS}; do
+ for x in ${ADA_DIRS} ${CHILL_DIRS} ${CPLUSPLUS_DIRS} ${FORTRAN_DIRS} \
+ ${JAVA_DIRS} ${OBJECTIVEC_DIRS} ${TESTSUITE_DIRS}; do
EXCLUDES="${EXCLUDES} --exclude $x"
done
build_tarfile gcc-core-${RELEASE} ${EXCLUDES} \
@@ -292,7 +294,7 @@ build_tarfiles() {
# Build .bz2 files.
for f in ${FILE_LIST}; do
bzfile=${f%.gz}.bz2
- zcat $f | ${BZIP2} > ${bzfile}
+ (zcat $f | ${BZIP2} > ${bzfile}) || error "Could not create ${bzfile}"
FILE_LIST="${FILE_LIST} ${bzfile}"
done
}
@@ -322,10 +324,11 @@ build_diff() {
changedir $tmpdir
tar xfz $1 || error "Could not unpack $1 for diffs"
tar xfz $3 || error "Could not unpack $3 for diffs"
- ${DIFF} $2 $4 | ${GZIP} > ../$5
+ ${DIFF} $2 $4 > ../${5%.gz}
if [ $? -eq 2 ]; then
error "Trouble making diffs from $1 to $3"
fi
+ ${GZIP} ../${5%.gz} || error "Could not gzip ../${5%.gz}"
changedir ..
rm -rf $tmpdir
FILE_LIST="${FILE_LIST} $5"
@@ -406,6 +409,8 @@ SOURCE_DIRECTORY=""
# The directories that should be part of the various language-specific
# tar files. These are all relative to the top of the source tree.
+ADA_DIRS="gcc/ada"
+CHILL_DIRS="gcc/ch libchill"
CPLUSPLUS_DIRS="gcc/cp libstdc++-v3"
FORTRAN_DIRS="gcc/f libf2c"
JAVA_DIRS="gcc/java libjava libffi fastjar zlib boehm-gc"
@@ -507,8 +512,8 @@ if [ $SNAPSHOT -eq 0 ]; then
fi
else
RELEASE=$DATE
- # For now snapshots come from the 3.0 branch.
- BRANCH=gcc-3_0-branch
+ # For now snapshots come from the mainline.
+ BRANCH=HEAD
FTP_PATH="${FTP_PATH}/snapshots/${LONG_DATE}"
TAG=gcc_ss_${DATE}
@@ -529,6 +534,8 @@ SOURCE_DIRECTORY="${WORKING_DIRECTORY}/gcc-${RELEASE}"
# Recompute the names of all the language-specific directories,
# relative to the WORKING_DIRECTORY.
+ADA_DIRS=`adjust_dirs ${ADA_DIRS}`
+CHILL_DIRS=`adjust_dirs ${CHILL_DIRS}`
CPLUSPLUS_DIRS=`adjust_dirs ${CPLUSPLUS_DIRS}`
FORTRAN_DIRS=`adjust_dirs ${FORTRAN_DIRS}`
JAVA_DIRS=`adjust_dirs ${JAVA_DIRS}`