From c461487ab4ecc7c5f43ae7f736f056c27f326e4a Mon Sep 17 00:00:00 2001 From: pme Date: Mon, 25 Jun 2001 19:26:25 +0000 Subject: 2001-06-25 Phil Edwards * 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 --- maintainer-scripts/update_version | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'maintainer-scripts/update_version') 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} <${file} <