OSDN Git Service

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