- 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
+for BRANCH in $BRANCHES; do
+ echo "Working on \"$BRANCH\"."
+ # Check out the files on the branch. HEAD is a special case; if
+ # you check out files with -r HEAD, CVS will not let you check
+ # in changes.
+ if test "$BRANCH" = HEAD; then
+ ${CVS} co $textstring_FILES $cppdefine_FILES
+ else
+ ${CVS} co -r $BRANCH $textstring_FILES $cppdefine_FILES
+ fi
+
+ # There are no files to commit yet.
+ COMMIT_FILES=""
+
+ for file in $textstring_FILES; do
+ if test -f $file; then
+ /bin/sed <$file >$file.new -e \
+ "s/\(.*\"[^ ]*\) [0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]/\1 ${CURR_DATE}/"