From 2e847896896e3283a0551eeb46b4d3c3c8211d2a Mon Sep 17 00:00:00 2001 From: Kelley Cook Date: Tue, 3 Aug 2004 21:42:18 +0000 Subject: maintainer-scripts (snapshot_print): New function. 2004-08-03 Kelley Cook * maintainer-scripts (snapshot_print): New function. (announce_snapshot): Generate announcment on the fly. Use a directory link for LATEST. * snapshot-README: Delete. * snapshot-index.html: Delete. From-SVN: r85508 --- maintainer-scripts/gcc_release | 114 +++++++++++++++++++++++++++++++++-------- 1 file changed, 94 insertions(+), 20 deletions(-) (limited to 'maintainer-scripts/gcc_release') diff --git a/maintainer-scripts/gcc_release b/maintainer-scripts/gcc_release index 5a1d5d5..8d49ce9 100755 --- a/maintainer-scripts/gcc_release +++ b/maintainer-scripts/gcc_release @@ -407,36 +407,110 @@ upload_files() { done } +#Print description if snapshot exists +snapshot_print() { + if [ -e ${RELEASE}/${SNAP_FILE} ]; then + printf "%-38s%s\n\n" "${SNAP_FILE}" "${SNAP_DESCRIPTION}" >> ${SNAPSHOT_README} + echo -e " ${SNAP_FILE}\n" \ + " ${SNAP_DESCRIPTION}" >> ${SNAPSHOT_INDEX} + fi +} + # Announce a snapshot, both on the web and via mail. announce_snapshot() { inform "Updating links and READMEs on the FTP server" TEXT_DATE=`date --date=$DATE +%B\ %d,\ %Y` + SNAPSHOT_README=${RELEASE}/README + SNAPSHOT_INDEX=${RELEASE}/index.html + changedir "${SNAPSHOTS_DIR}" - sed -e "s%@DATE@%$DATE%g" \ - -e "s%@TEXT_DATE@%$TEXT_DATE%g" \ - -e "s%@LAST_DATE@%$LAST_DATE%g" \ - -e "s%@BRANCH@%${BRANCH}%g" \ - -e "s%@RELEASE@%${RELEASE}%g" \ - -e "s%@EXPORT@%${EXPORTTAG} ${EXPORTDATE}%g" \ - ~/scripts/snapshot-README > $$ - mv $$ ${RELEASE}/README - sed -e "s%@DATE@%$DATE%g" \ - -e "s%@TEXT_DATE@%$TEXT_DATE%g" \ - -e "s%@LAST_DATE@%$LAST_DATE%g" \ - -e "s%@BRANCH@%${BRANCH}%g" \ - -e "s%@RELEASE@%${RELEASE}%g" \ - -e "s%@EXPORT@%${EXPORTTAG} ${EXPORTDATE}%g" \ - ~/scripts/snapshot-index.html > $$ - mv $$ ${RELEASE}/index.html - - touch LATEST-IS-${BRANCH}-${DATE} - rm -f LATEST-IS-${BRANCH}-${LAST_DATE} + echo -e "Snapshot gcc-"${RELEASE}" is now available on" \ + "\n ftp://gcc.gnu.org/pub/gcc/snapshots/"${RELEASE}"/" \ + "\nand on various mirrors, see http://gcc.gnu.org/mirrors.html for details." \ + "\n\nThis snapshot has been generated from the GCC "${BRANCH}" CVS branch" \ + "\nwith the following options: "${EXPORTTAG} ${EXPORTDATE} \ + "\n\nYou'll find:\n" > ${SNAPSHOT_README} + + echo -e "" \ + "\n\n" \ + "\nGCC "${RELEASE}" Snapshot" \ + "\n" \ + "\n\n" \ + "\n

GCC "${RELEASE}" Snapshot

" \ + "\n\n

The GCC Project makes" \ + "\nperiodic snapshots of the GCC source tree available to the public" \ + "\nfor testing purposes.

" \ + "\n\n

If you are planning to download and use one of our snapshots, then" \ + "\nwe highly recommend you join the GCC developers list. Details for" \ + "\nhow to sign up can be found on the GCC project home page.

" \ + "\n\n

This snapshot has been generated from the GCC "${BRANCH}" CVS branch" \ + "\nwith the following options: "${EXPORTTAG} ${EXPORTDATE}"

" \ + "\n\n" > ${SNAPSHOT_INDEX} + + SNAP_FILE=gcc-${RELEASE}.tar.bz2 + SNAP_DESCRIPTION="Complete GCC (includes all of below)" + snapshot_print + + SNAP_FILE=gcc-core-${RELEASE}.tar.bz2 + SNAP_DESCRIPTION="C front end and core compiler" + snapshot_print + + SNAP_FILE=gcc-ada-${RELEASE}.tar.bz2 + SNAP_DESCRIPTION="Ada front end and runtime" + snapshot_print + + SNAP_FILE=gcc-fortran-${RELEASE}.tar.bz2 + SNAP_DESCRIPTION="Fortran front end and runtime" + snapshot_print + + SNAP_FILE=gcc-g++-${RELEASE}.tar.bz2 + SNAP_DESCRIPTION="C++ front end and runtime" + snapshot_print + + SNAP_FILE=gcc-g77-${RELEASE}.tar.bz2 + SNAP_DESCRIPTION="Fortran 77 front end and runtime" + snapshot_print + + SNAP_FILE=gcc-java-${RELEASE}.tar.bz2 + SNAP_DESCRIPTION="Objective-C front end and runtime" + snapshot_print + + SNAP_FILE=gcc-objc-${RELEASE}.tar.bz2 + SNAP_DESCRIPTION="Java front end and runtime" + snapshot_print + + SNAP_FILE=gcc-testsuite-${RELEASE}.tar.bz2 + SNAP_DESCRIPTION="The GCC testsuite" + snapshot_print + + echo -e "\nDiffs from "${BRANCH}"-"${LAST_DATE}" are available in the diffs/ subdirectory." \ + "\n\nWhen a particular snapshot is ready for public consumption the LATEST-"${BRANCH} \ + "\nlink is updated and a message is sent to the gcc list. Please do not use" \ + "\na snapshot before it has been announced that way." >> ${SNAPSHOT_README} + + echo -e "
" \ + "\n

Diffs from "${BRANCH}"-"${LAST_DATE}" are available in the" \ + "\ndiffs/ subdirectory.

" \ + "\n\n

When a particular snapshot is ready for public consumption the LATEST-"${BRANCH} \ + "\nlink is updated and a message is sent to the gcc list. Please do not use" \ + "\na snapshot before it has been announced that way.

" \ + "\n\n
" \ + "\n\n
" \ + "\ngcc@gcc.gnu.org" \ + "\n
" \ + "\nLast modified "${TEXT_DATE} \ + "\n
" \ + "\n" \ + "\n\n" >> ${SNAPSHOT_INDEX} + + rm -f LATEST-${BRANCH} + ln -s ${RELEASE} LATEST-${BRANCH} inform "Sending mail" export QMAILHOST=gcc.gnu.org - mail -s "gcc-ss-${RELEASE} is now available" gcc@gcc.gnu.org < ${SNAPSHOTS_DIR}/${RELEASE}/README + mail -s "gcc-${RELEASE} is now available" gcc@gcc.gnu.org < ${SNAPSHOT_README} } ######################################################################## -- cgit v1.1