summaryrefslogtreecommitdiff
path: root/maintainer-scripts
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2002-02-08 17:56:12 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2002-02-08 17:56:12 +0000
commit18619e053e5c7525c5ac818713db53f73980270c (patch)
tree756139dee7f88c704534b2c2df97807f40c9a6d2 /maintainer-scripts
parent77badc5f783a8aead1bacc5ff6fdc87c869ba801 (diff)
downloadgcc-18619e053e5c7525c5ac818713db53f73980270c.tar.gz
* gcc_release: Substitute dates in snapshot-README and
snapshot-index.html files rather than directly using the old files on the FTP site. Set QMAILHOST. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49619 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'maintainer-scripts')
-rw-r--r--maintainer-scripts/ChangeLog6
-rwxr-xr-xmaintainer-scripts/gcc_release16
2 files changed, 13 insertions, 9 deletions
diff --git a/maintainer-scripts/ChangeLog b/maintainer-scripts/ChangeLog
index 89798c76773..12673404ae9 100644
--- a/maintainer-scripts/ChangeLog
+++ b/maintainer-scripts/ChangeLog
@@ -1,3 +1,9 @@
+2002-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
+
+ * gcc_release: Substitute dates in snapshot-README and
+ snapshot-index.html files rather than directly using the old files
+ on the FTP site. Set QMAILHOST.
+
2002-02-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
* snapshot-index.html: Improve markup.
diff --git a/maintainer-scripts/gcc_release b/maintainer-scripts/gcc_release
index 003b0df3cfd..5c1b0397687 100755
--- a/maintainer-scripts/gcc_release
+++ b/maintainer-scripts/gcc_release
@@ -521,7 +521,6 @@ else
# was.
if [ $LOCAL -ne 0 ]; then
LAST_DATE=`cat ~/.snapshot_date`
- PREV_LAST_DATE=`cat ~/.prev_snapshot_date`
LAST_LONG_DATE=`date --date=$LAST_DATE +%Y-%m-%d`
LAST_DIR=~ftp/pub/gcc/snapshots/${LAST_LONG_DATE}
OLD_TARS=${LAST_DIR}/gcc-${LAST_DATE}.tar.gz
@@ -588,15 +587,14 @@ if [ $MODE_UPLOAD -ne 0 ]; then
if [ $SNAPSHOT -ne 0 ] && [ $LOCAL -ne 0 ]; then
# Update links on the FTP server.
TEXT_DATE=`date --date=$DATE +%B\ %d,\ %Y`
- LAST_TEXT_DATE=`date --date=$LAST_DATE +%B\ %d,\ %Y`
cd ~ftp/pub/gcc/snapshots
- sed -e "s%$LAST_DATE%$DATE%g" -e "s%$PREV_LAST_DATE%$LAST_DATE%g" \
- -e "s%$LAST_LONG_DATE%$LONG_DATE%g" \
- -e "s%$LAST_TEXT_DATE%$TEXT_DATE%g" < README > $$
+ sed -e "s%@DATE@%$DATE%g" -e "s%@LAST_DATE@%$LAST_DATE%g" \
+ -e "s%@LONG_DATE@%$LONG_DATE%g" \
+ -e "s%@TEXT_DATE@%$TEXT_DATE%g" < ~/scripts/snapshot-README > $$
mv $$ README
- sed -e "s%$LAST_DATE%$DATE%g" -e "s%$PREV_LAST_DATE%$LAST_DATE%g" \
- -e "s%$LAST_LONG_DATE%$LONG_DATE%g" \
- -e "s%$LAST_TEXT_DATE%$TEXT_DATE%g" < index.html > $$
+ sed -e "s%@DATE@%$DATE%g" -e "s%@LAST_DATE@%$LAST_DATE%g" \
+ -e "s%@LONG_DATE@%$LONG_DATE%g" \
+ -e "s%@TEXT_DATE@%$TEXT_DATE%g" < ~/scripts/snapshot-index.html > $$
mv $$ index.html
touch LATEST-IS-$LONG_DATE
@@ -604,7 +602,6 @@ if [ $MODE_UPLOAD -ne 0 ]; then
# Update snapshot date file.
changedir ~
- mv .snapshot_date .prev_snapshot_date
echo $DATE >.snapshot_date
# Update gcc_latest_snapshot tag.
@@ -612,6 +609,7 @@ if [ $MODE_UPLOAD -ne 0 ]; then
${CVS} rtag -rgcc_ss_${DATE} gcc_latest_snapshot gcc
# Announce the snapshot.
+ export QMAILHOST=gcc.gnu.org
mail -s "gcc-ss-$DATE is now available" gcc@gcc.gnu.org < ~ftp/pub/gcc/snapshots/README
# Remove working directory