diff options
author | pme <pme@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-25 19:26:25 +0000 |
---|---|---|
committer | pme <pme@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-25 19:26:25 +0000 |
commit | c461487ab4ecc7c5f43ae7f736f056c27f326e4a (patch) | |
tree | 8fb8beea514ea5d5f617195bad8e4901b2b79d33 /maintainer-scripts/update_version | |
parent | ae3b5da0d3ddd77d65482b06d5f72cdded82d03d (diff) | |
download | gcc-c461487ab4ecc7c5f43ae7f736f056c27f326e4a.tar.gz |
2001-06-25 Phil Edwards <pme@sources.redhat.com>
* update_version: Add command-line argument capability, also
bump version for libstdc++-v3, and exit with the return code from
the cvs commit.
* crontab: Call update_version with arguments instead of
calling update_branch_version.
* update_branch_version: Remove.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43555 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'maintainer-scripts/update_version')
-rwxr-xr-x | maintainer-scripts/update_version | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/maintainer-scripts/update_version b/maintainer-scripts/update_version index 6115664ef8f..cd3c5e6ea18 100755 --- a/maintainer-scripts/update_version +++ b/maintainer-scripts/update_version @@ -7,20 +7,35 @@ export CVSROOT /bin/mkdir /tmp/$$ cd /tmp/$$ +# ARGS is passed to 'cvs co' +ARGS="$*" CURR_DATE=`/bin/date +"%Y%m%d"` -FILES="gcc/gcc/version.c gcc/gcc/f/version.c gcc/libf2c/libF77/Version.c gcc/libf2c/libI77/Version.c gcc/libf2c/libU77/Version.c" +# version is contained within a char* +textstring_FILES="gcc/gcc/version.c gcc/gcc/f/version.c gcc/libf2c/libF77/Version.c gcc/libf2c/libI77/Version.c gcc/libf2c/libU77/Version.c" -/usr/local/bin/cvs co $FILES +# version is contained within a #define +cppdefine_FILES="gcc/libstdc++-v3/include/bits/c++config" -for file in $FILES; do +/usr/local/bin/cvs co $ARGS $textstring_FILES $cppdefine_FILES +for file in $textstring_FILES; do OLD_VERSION=`/bin/cat $file` /bin/sed -e "s/\(.*\"[^ ]*\) [0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]/\1 ${CURR_DATE}/" >${file} <<HERE $OLD_VERSION HERE done -/usr/local/bin/cvs commit -m "Daily bump." $FILES +for file in $cppdefine_FILES; do + OLD_VERSION=`/bin/cat $file` + /bin/sed -e "s/\(#.*\) [0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]/\1 ${CURR_DATE}/" >${file} <<HERE +$OLD_VERSION +HERE +done + +/usr/local/bin/cvs commit -m "Daily bump." $textstring_FILES $cppdefine_FILES +commit_results=$? /bin/rm -rf /tmp/$$ +exit $commit_results + |