2eb6fbf861
* update_version, update_branch_version: Check out with gcc directory instead of using egcs link. From-SVN: r40591
27 lines
567 B
Bash
Executable File
27 lines
567 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Run this from /tmp.
|
|
CVSROOT=/cvs/gcc
|
|
export CVSROOT
|
|
/bin/rm -rf /tmp/$$
|
|
/bin/mkdir /tmp/$$
|
|
cd /tmp/$$
|
|
|
|
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"
|
|
|
|
/usr/local/bin/cvs co $FILES
|
|
|
|
for file in $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
|
|
|
|
/bin/rm -rf /tmp/$$
|