10 # ARGS is passed to 'cvs co'
12 CURR_DATE
=`/bin/date +"%Y%m%d"`
14 # version is contained within a char*
15 textstring_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"
17 # version is contained within a #define
18 cppdefine_FILES
="gcc/libstdc++-v3/include/bits/c++config"
20 /usr
/local
/bin
/cvs co
$ARGS $textstring_FILES $cppdefine_FILES
22 for file in $textstring_FILES; do
23 OLD_VERSION
=`/bin/cat $file`
24 /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
29 for file in $cppdefine_FILES; do
30 OLD_VERSION
=`/bin/cat $file`
31 /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
36 /usr
/local
/bin
/cvs commit
-m "Daily bump." $textstring_FILES $cppdefine_FILES