OSDN Git Service

* crontab, doc_exclude, update_branch_version, update_version,
[pf3gnuchains/gcc-fork.git] / maintainer-scripts / update_branch_version
1 #!/bin/sh 
2
3 # Run this from /tmp.
4 CVSROOT=/cvs/gcc
5 export CVSROOT
6 BRANCH=gcc-3_0-branch
7 export BRANCH
8 /bin/rm -rf /tmp/$$
9 /bin/mkdir /tmp/$$
10 cd /tmp/$$
11
12 CURR_DATE=`/bin/date +"%Y%m%d"`
13
14 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"
15
16 /usr/local/bin/cvs co -r$BRANCH $FILES
17
18 for file in $FILES; do
19
20   OLD_VERSION=`/bin/cat $file`
21   /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
22 $OLD_VERSION
23 HERE
24 done
25
26 /usr/local/bin/cvs commit -m "Bump dates." $FILES
27
28 /bin/rm -rf /tmp/$$