gcc_release (snapshot_print): Accept arguments.

2004-08-06  Kelley Cook  <kcook@gcc.gnu.org>

	* gcc_release (snapshot_print): Accept arguments.  Don't use echo -e.
	(announce_snapshot):  Update for above.  Don't use echo -e.

From-SVN: r85637
This commit is contained in:
Kelley Cook 2004-08-06 11:11:11 +00:00 committed by R. Kelley Cook
parent caad9f8186
commit 155cb61615
2 changed files with 70 additions and 73 deletions

View File

@ -1,3 +1,8 @@
2004-08-06 Kelley Cook <kcook@gcc.gnu.org>
* gcc_release (snapshot_print): Accept arguments. Don't use echo -e.
(announce_snapshot): Update for above. Don't use echo -e.
2004-08-03 Kelley Cook <kcook@gcc.gnu.org> 2004-08-03 Kelley Cook <kcook@gcc.gnu.org>
* maintainer-scripts (snapshot_print): New function. * maintainer-scripts (snapshot_print): New function.

View File

@ -409,10 +409,10 @@ upload_files() {
#Print description if snapshot exists #Print description if snapshot exists
snapshot_print() { snapshot_print() {
if [ -e ${RELEASE}/${SNAP_FILE} ]; then if [ -e ${RELEASE}/$1 ]; then
printf "%-38s%s\n\n" "${SNAP_FILE}" "${SNAP_DESCRIPTION}" >> ${SNAPSHOT_README} printf "%-38s%s\n\n" "$1" "$2" >> ${SNAPSHOT_README}
echo -e " <tr><td><a href=\"${SNAP_FILE}\">${SNAP_FILE}</a></td>\n" \ echo " <tr><td><a href=\"$1\">$1</a></td>" >> ${SNAPSHOT_INDEX}
" <td>${SNAP_DESCRIPTION}</td></tr>" >> ${SNAPSHOT_INDEX} echo " <td>$2</td></tr>" >> ${SNAPSHOT_INDEX}
fi fi
} }
@ -425,84 +425,76 @@ announce_snapshot() {
SNAPSHOT_INDEX=${RELEASE}/index.html SNAPSHOT_INDEX=${RELEASE}/index.html
changedir "${SNAPSHOTS_DIR}" changedir "${SNAPSHOTS_DIR}"
echo -e "Snapshot gcc-"${RELEASE}" is now available on" \ echo \
"\n ftp://gcc.gnu.org/pub/gcc/snapshots/"${RELEASE}"/" \ "Snapshot gcc-"${RELEASE}" is now available on
"\nand on various mirrors, see http://gcc.gnu.org/mirrors.html for details." \ ftp://gcc.gnu.org/pub/gcc/snapshots/"${RELEASE}"/
"\n\nThis snapshot has been generated from the GCC "${BRANCH}" CVS branch" \ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details.
"\nwith the following options: "${EXPORTTAG} ${EXPORTDATE} \
"\n\nYou'll find:\n" > ${SNAPSHOT_README}
echo -e "<html>" \ This snapshot has been generated from the GCC "${BRANCH}" CVS branch
"\n\n<head>" \ with the following options: "${EXPORTTAG} ${EXPORTDATE}"
"\n<title>GCC "${RELEASE}" Snapshot</title>" \
"\n</head>" \
"\n\n<body>" \
"\n<h1>GCC "${RELEASE}" Snapshot</h1>" \
"\n\n<p>The <a href =\"http://gcc.gnu.org/\">GCC Project</a> makes" \
"\nperiodic snapshots of the GCC source tree available to the public" \
"\nfor testing purposes.</p>" \
"\n\n<p>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.</p>" \
"\n\n<p>This snapshot has been generated from the GCC "${BRANCH}" CVS branch" \
"\nwith the following options: <code>"${EXPORTTAG} ${EXPORTDATE}"</code></p>" \
"\n\n<table>" > ${SNAPSHOT_INDEX}
SNAP_FILE=gcc-${RELEASE}.tar.bz2 You'll find:
SNAP_DESCRIPTION="Complete GCC (includes all of below)" " > ${SNAPSHOT_README}
snapshot_print
SNAP_FILE=gcc-core-${RELEASE}.tar.bz2 echo \
SNAP_DESCRIPTION="C front end and core compiler" "<html>
snapshot_print
SNAP_FILE=gcc-ada-${RELEASE}.tar.bz2 <head>
SNAP_DESCRIPTION="Ada front end and runtime" <title>GCC "${RELEASE}" Snapshot</title>
snapshot_print </head>
SNAP_FILE=gcc-fortran-${RELEASE}.tar.bz2 <body>
SNAP_DESCRIPTION="Fortran front end and runtime" <h1>GCC "${RELEASE}" Snapshot</h1>
snapshot_print
SNAP_FILE=gcc-g++-${RELEASE}.tar.bz2 <p>The <a href =\"http://gcc.gnu.org/\">GCC Project</a> makes
SNAP_DESCRIPTION="C++ front end and runtime" periodic snapshots of the GCC source tree available to the public
snapshot_print for testing purposes.</p>
SNAP_FILE=gcc-g77-${RELEASE}.tar.bz2 <p>If you are planning to download and use one of our snapshots, then
SNAP_DESCRIPTION="Fortran 77 front end and runtime" we highly recommend you join the GCC developers list. Details for
snapshot_print how to sign up can be found on the GCC project home page.</p>
SNAP_FILE=gcc-java-${RELEASE}.tar.bz2 <p>This snapshot has been generated from the GCC "${BRANCH}" CVS branch
SNAP_DESCRIPTION="Objective-C front end and runtime" with the following options: <code>"${EXPORTTAG} ${EXPORTDATE}"</code></p>
snapshot_print
SNAP_FILE=gcc-objc-${RELEASE}.tar.bz2 <table>" > ${SNAPSHOT_INDEX}
SNAP_DESCRIPTION="Java front end and runtime"
snapshot_print
SNAP_FILE=gcc-testsuite-${RELEASE}.tar.bz2 snapshot_print gcc-${RELEASE}.tar.bz2 "Complete GCC (includes all of below)"
SNAP_DESCRIPTION="The GCC testsuite" snapshot_print gcc-core-${RELEASE}.tar.bz2 "C front end and core compiler"
snapshot_print snapshot_print gcc-ada-${RELEASE}.tar.bz2 "Ada front end and runtime"
snapshot_print gcc-fortran-${RELEASE}.tar.bz2 "Fortran front end and runtime"
snapshot_print gcc-g++-${RELEASE}.tar.bz2 "C++ front end and runtime"
snapshot_print gcc-g77-${RELEASE}.tar.bz2 "Fortran 77 front end and runtime"
snapshot_print gcc-java-${RELEASE}.tar.bz2 "Java front end and runtime"
snapshot_print gcc-objc-${RELEASE}.tar.bz2 "Objective-C front end and runtime"
snapshot_print gcc-testsuite-${RELEASE}.tar.bz2 "The GCC testsuite"
echo -e "\nDiffs from "${BRANCH}"-"${LAST_DATE}" are available in the diffs/ subdirectory." \ echo \
"\n\nWhen a particular snapshot is ready for public consumption the LATEST-"${BRANCH} \ "Diffs from "${BRANCH}"-"${LAST_DATE}" are available in the diffs/ subdirectory.
"\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 "</table>" \ When a particular snapshot is ready for public consumption the LATEST-"${BRANCH}"
"\n<p>Diffs from "${BRANCH}"-"${LAST_DATE}" are available in the" \ link is updated and a message is sent to the gcc list. Please do not use
"\n<a href=\"diffs/\">diffs/ subdirectory</a>.</p>" \ a snapshot before it has been announced that way." >> ${SNAPSHOT_README}
"\n\n<p>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" \ echo \
"\na snapshot before it has been announced that way.</p>" \ "</table>
"\n\n<hr />" \ <p>Diffs from "${BRANCH}"-"${LAST_DATE}" are available in the
"\n\n<address>" \ <a href=\"diffs/\">diffs/ subdirectory</a>.</p>
"\n<a href=\"mailto:gcc@gcc.gnu.org\">gcc@gcc.gnu.org</a>" \
"\n<br />" \ <p>When a particular snapshot is ready for public consumption the LATEST-"${BRANCH}"
"\nLast modified "${TEXT_DATE} \ link is updated and a message is sent to the gcc list. Please do not use
"\n</address>" \ a snapshot before it has been announced that way.</p>
"\n</body>" \
"\n\n</html>" >> ${SNAPSHOT_INDEX} <hr />
<address>
<a href=\"mailto:gcc@gcc.gnu.org\">gcc@gcc.gnu.org</a>
<br />
Last modified "${TEXT_DATE}"
</address>
</body>
</html>" >> ${SNAPSHOT_INDEX}
rm -f LATEST-${BRANCH} rm -f LATEST-${BRANCH}
ln -s ${RELEASE} LATEST-${BRANCH} ln -s ${RELEASE} LATEST-${BRANCH}