Commit 7daaf8fa by Mark Mitchell Committed by Mark Mitchell

gcc_release: Correct logic for updating version.c.

	* gcc_release: Correct logic for updating version.c.  Put
	prereleases into a subdirectory.

From-SVN: r70252
parent fcbe85cd
2003-08-08 Mark Mitchell <mark@codesourcery.com>
* gcc_release: Correct logic for updating version.c. Put
prereleases into a subdirectory.
2003-07-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> 2003-07-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
* crontab: Update invocation of gcc_release according to the * crontab: Update invocation of gcc_release according to the
......
...@@ -144,7 +144,7 @@ EOF ...@@ -144,7 +144,7 @@ EOF
for x in gcc/version.c; do for x in gcc/version.c; do
y=`basename ${x}` y=`basename ${x}`
(changedir `dirname ${SOURCE_DIRECTORY}/${x}` && \ (changedir `dirname ${SOURCE_DIRECTORY}/${x}` && \
sed -e 's|= \".*\"|= \"'${RELEASE}'\"|g' < ${y} > ${y}.new && \ sed -e 's|version_string\[\] = \".*\"|version_string\[\] = \"'${RELEASE}'\"|g' < ${y} > ${y}.new && \
mv ${y}.new ${y} && \ mv ${y}.new ${y} && \
${CVS} ci -m 'Update version' ${y}) || \ ${CVS} ci -m 'Update version' ${y}) || \
error "Could not update ${x}" error "Could not update ${x}"
...@@ -583,7 +583,7 @@ if [ $SNAPSHOT -eq 0 ]; then ...@@ -583,7 +583,7 @@ if [ $SNAPSHOT -eq 0 ]; then
# If this is not a final release, set various parameters acordingly. # If this is not a final release, set various parameters acordingly.
if [ ${FINAL} -ne 1 ]; then if [ ${FINAL} -ne 1 ]; then
RELEASE="${RELEASE}-${DATE}" RELEASE="${RELEASE}-${DATE}"
FTP_PATH="${FTP_PATH}/snapshots/" FTP_PATH="${FTP_PATH}/prerelease-${RELEASE}/"
else else
FTP_PATH="${FTP_PATH}/releases/gcc-${RELEASE}/" FTP_PATH="${FTP_PATH}/releases/gcc-${RELEASE}/"
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment