Commit 4494cdde by Gerald Pfeifer Committed by Gerald Pfeifer

gcc_release (build_sources): Only update ChangeLog files which do not yet…

gcc_release (build_sources): Only update ChangeLog files which do not yet contain the entry we are going to add.

	* gcc_release (build_sources): Only update ChangeLog files which
	do not yet contain the entry we are going to add.
	Fix typo in added ChangeLog entries.

From-SVN: r67143
parent 5299653d
2003-05-24 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
* gcc_release (build_sources): Only update ChangeLog files which
do not yet contain the entry we are going to add.
Fix typo in added ChangeLog entries.
2003-05-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
* gcc_release (upload_files): Put diff files into a "diffs"
......@@ -12,7 +18,7 @@
* gcc_release (usage): Print more detailed description of all
command-line options.
2003-05-09 Gerald Pfeifer <gerald@sourceware.org>
2003-05-09 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
* update_version (ADD_BRANCHES): Add, set to MAIN and
tree-ssa-20020619-branch.
......@@ -23,12 +29,12 @@
* update_version (textstring_FILES): Only version.c needs to be
updated, now that we do not consider older branches any more.
2003-05-02 Gerald Pfeifer <gerald@pfeifer@dbai.tuwien.ac.at>
2003-05-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
* update_version (IGNORE_BRANCHES): Add.
(BRANCHES): Do not consider branches matching $IGNORE_BRANCHES.
2003-05-02 Gerald Pfeifer <gerald@pfeifer@dbai.tuwien.ac.at>
2003-05-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
* update_version: Add a trace of which branch we are currently
working on.
......
......@@ -122,17 +122,22 @@ build_sources() {
-r ${BRANCH} gcc || \
error "Could not check out release sources"
for x in `find ${SOURCE_DIRECTORY} -name ChangeLog`; do
cat - ${x} > ${x}.new <<EOF
# Update this ChangeLog file only if it does not yet contain the
# entry we are going to add. (This is a safety net for repeated
# runs of this script for the same release.)
if ! grep "GCC ${RELEASE} released." ${x} > /dev/null ; then
cat - ${x} > ${x}.new <<EOF
${LONG_DATE} Release Manager
* GCC ${RELEASE} Released.
* GCC ${RELEASE} released.
EOF
mv ${x}.new ${x} || \
error "Could not update ${x}"
(changedir `dirname ${x}` && \
${CVS} ci -m 'Mark ChangeLog' `basename ${x}`) || \
error "Could not commit ${x}"
mv ${x}.new ${x} || \
error "Could not update ${x}"
(changedir `dirname ${x}` && \
${CVS} ci -m 'Mark ChangeLog' `basename ${x}`) || \
error "Could not commit ${x}"
fi
done
# Update `gcc/version.c'.
......
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