gcc/maintainer-scripts/update_branch_version
Joseph Myers 2d2ade2a3f crontab, [...]: New files (as currently used by gccadmin).
* crontab, doc_exclude, update_branch_version, update_version,
	update_web_docs: New files (as currently used by gccadmin).
	* README: New file.

From-SVN: r40352
2001-03-10 00:08:50 +00:00

29 lines
618 B
Bash
Executable File

#!/bin/sh
# Run this from /tmp.
CVSROOT=/cvs/gcc
export CVSROOT
BRANCH=gcc-3_0-branch
export BRANCH
/bin/rm -rf /tmp/$$
/bin/mkdir /tmp/$$
cd /tmp/$$
CURR_DATE=`/bin/date +"%Y%m%d"`
FILES="egcs/gcc/version.c egcs/gcc/f/version.c egcs/libf2c/libF77/Version.c egcs/libf2c/libI77/Version.c egcs/libf2c/libU77/Version.c"
/usr/local/bin/cvs co -r$BRANCH $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 "Bump dates." $FILES
/bin/rm -rf /tmp/$$