* invoke.texi: Add more options to summary list.
[official-gcc.git] / maintainer-scripts / update_version
blob6115664ef8f758615ffff45ffe6aefb2faa47e0d
1 #!/bin/sh
3 # Run this from /tmp.
4 CVSROOT=/cvs/gcc
5 export CVSROOT
6 /bin/rm -rf /tmp/$$
7 /bin/mkdir /tmp/$$
8 cd /tmp/$$
10 CURR_DATE=`/bin/date +"%Y%m%d"`
12 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"
14 /usr/local/bin/cvs co $FILES
16 for file in $FILES; do
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
24 /usr/local/bin/cvs commit -m "Daily bump." $FILES
26 /bin/rm -rf /tmp/$$