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
This commit is contained in:
parent
322821b9ad
commit
dbff21c520
3 changed files with 21 additions and 7 deletions
|
@ -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>
|
2001-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
|
||||||
|
|
||||||
* crontab: Build weekly snapshots.
|
* crontab: Build weekly snapshots.
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
16 0 * * * sh /home/gccadmin/scripts/update_version -rgcc-3_0-branch
|
16 0 * * * sh /home/gccadmin/scripts/update_version -rgcc-3_0-branch
|
||||||
50 0 * * * sh /home/gccadmin/scripts/update_web_docs
|
50 0 * * * sh /home/gccadmin/scripts/update_web_docs
|
||||||
55 0 * * * sh /home/gccadmin/scripts/update_web_docs_libstdcxx
|
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
|
||||||
|
|
|
@ -267,6 +267,8 @@ build_tarfiles() {
|
||||||
build_tarfile gcc-${RELEASE} `basename ${SOURCE_DIRECTORY}`
|
build_tarfile gcc-${RELEASE} `basename ${SOURCE_DIRECTORY}`
|
||||||
|
|
||||||
# Now, build one for each of the languages.
|
# 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-g++-${RELEASE} ${CPLUSPLUS_DIRS}
|
||||||
build_tarfile gcc-g77-${RELEASE} ${FORTRAN_DIRS}
|
build_tarfile gcc-g77-${RELEASE} ${FORTRAN_DIRS}
|
||||||
build_tarfile gcc-java-${RELEASE} ${JAVA_DIRS}
|
build_tarfile gcc-java-${RELEASE} ${JAVA_DIRS}
|
||||||
|
@ -275,8 +277,8 @@ build_tarfiles() {
|
||||||
|
|
||||||
# The core is everything else.
|
# The core is everything else.
|
||||||
EXCLUDES=""
|
EXCLUDES=""
|
||||||
for x in ${CPLUSPLUS_DIRS} ${FORTRAN_DIRS} ${JAVA_DIRS} \
|
for x in ${ADA_DIRS} ${CHILL_DIRS} ${CPLUSPLUS_DIRS} ${FORTRAN_DIRS} \
|
||||||
${OBJECTIVEC_DIRS} ${TESTSUITE_DIRS}; do
|
${JAVA_DIRS} ${OBJECTIVEC_DIRS} ${TESTSUITE_DIRS}; do
|
||||||
EXCLUDES="${EXCLUDES} --exclude $x"
|
EXCLUDES="${EXCLUDES} --exclude $x"
|
||||||
done
|
done
|
||||||
build_tarfile gcc-core-${RELEASE} ${EXCLUDES} \
|
build_tarfile gcc-core-${RELEASE} ${EXCLUDES} \
|
||||||
|
@ -292,7 +294,7 @@ build_tarfiles() {
|
||||||
# Build .bz2 files.
|
# Build .bz2 files.
|
||||||
for f in ${FILE_LIST}; do
|
for f in ${FILE_LIST}; do
|
||||||
bzfile=${f%.gz}.bz2
|
bzfile=${f%.gz}.bz2
|
||||||
zcat $f | ${BZIP2} > ${bzfile}
|
(zcat $f | ${BZIP2} > ${bzfile}) || error "Could not create ${bzfile}"
|
||||||
FILE_LIST="${FILE_LIST} ${bzfile}"
|
FILE_LIST="${FILE_LIST} ${bzfile}"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -322,10 +324,11 @@ build_diff() {
|
||||||
changedir $tmpdir
|
changedir $tmpdir
|
||||||
tar xfz $1 || error "Could not unpack $1 for diffs"
|
tar xfz $1 || error "Could not unpack $1 for diffs"
|
||||||
tar xfz $3 || error "Could not unpack $3 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
|
if [ $? -eq 2 ]; then
|
||||||
error "Trouble making diffs from $1 to $3"
|
error "Trouble making diffs from $1 to $3"
|
||||||
fi
|
fi
|
||||||
|
${GZIP} ../${5%.gz} || error "Could not gzip ../${5%.gz}"
|
||||||
changedir ..
|
changedir ..
|
||||||
rm -rf $tmpdir
|
rm -rf $tmpdir
|
||||||
FILE_LIST="${FILE_LIST} $5"
|
FILE_LIST="${FILE_LIST} $5"
|
||||||
|
@ -406,6 +409,8 @@ SOURCE_DIRECTORY=""
|
||||||
|
|
||||||
# The directories that should be part of the various language-specific
|
# The directories that should be part of the various language-specific
|
||||||
# tar files. These are all relative to the top of the source tree.
|
# 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"
|
CPLUSPLUS_DIRS="gcc/cp libstdc++-v3"
|
||||||
FORTRAN_DIRS="gcc/f libf2c"
|
FORTRAN_DIRS="gcc/f libf2c"
|
||||||
JAVA_DIRS="gcc/java libjava libffi fastjar zlib boehm-gc"
|
JAVA_DIRS="gcc/java libjava libffi fastjar zlib boehm-gc"
|
||||||
|
@ -507,8 +512,8 @@ if [ $SNAPSHOT -eq 0 ]; then
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
RELEASE=$DATE
|
RELEASE=$DATE
|
||||||
# For now snapshots come from the 3.0 branch.
|
# For now snapshots come from the mainline.
|
||||||
BRANCH=gcc-3_0-branch
|
BRANCH=HEAD
|
||||||
FTP_PATH="${FTP_PATH}/snapshots/${LONG_DATE}"
|
FTP_PATH="${FTP_PATH}/snapshots/${LONG_DATE}"
|
||||||
TAG=gcc_ss_${DATE}
|
TAG=gcc_ss_${DATE}
|
||||||
|
|
||||||
|
@ -529,6 +534,8 @@ SOURCE_DIRECTORY="${WORKING_DIRECTORY}/gcc-${RELEASE}"
|
||||||
|
|
||||||
# Recompute the names of all the language-specific directories,
|
# Recompute the names of all the language-specific directories,
|
||||||
# relative to the WORKING_DIRECTORY.
|
# relative to the WORKING_DIRECTORY.
|
||||||
|
ADA_DIRS=`adjust_dirs ${ADA_DIRS}`
|
||||||
|
CHILL_DIRS=`adjust_dirs ${CHILL_DIRS}`
|
||||||
CPLUSPLUS_DIRS=`adjust_dirs ${CPLUSPLUS_DIRS}`
|
CPLUSPLUS_DIRS=`adjust_dirs ${CPLUSPLUS_DIRS}`
|
||||||
FORTRAN_DIRS=`adjust_dirs ${FORTRAN_DIRS}`
|
FORTRAN_DIRS=`adjust_dirs ${FORTRAN_DIRS}`
|
||||||
JAVA_DIRS=`adjust_dirs ${JAVA_DIRS}`
|
JAVA_DIRS=`adjust_dirs ${JAVA_DIRS}`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue