Skip to content
Snippets Groups Projects
Commit d8e6fa6e authored by Daniel Berlin's avatar Daniel Berlin
Browse files

Fix update_version_svn so it actually is the correct version of this script

From-SVN: r105928
parent 9a1ba72e
No related branches found
No related tags found
No related merge requests found
......@@ -23,10 +23,9 @@ BRANCHES=`$SVN ls $SVNROOT/branches \
| sed -e 's/\///' \
| egrep 'gcc-[0-9]+_[0-9]+-branch$' \
| egrep -v $IGNORE_BRANCHES`
# Always update the mainline.
BRANCHES="${BRANCHES} ${ADD_BRANCHES}"
BRANCHES="HEAD"
# ARGS is passed to 'cvs co'
CURR_DATE=`/bin/date +"%Y%m%d"`
......@@ -66,8 +65,6 @@ for BRANCH in $BRANCHES; do
dirname=`basename $file`
file=`basename $file`
file="$dirname/$file"
echo "$file"
exit 0;
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}/"
......@@ -80,6 +77,7 @@ for BRANCH in $BRANCHES; do
fi
fi
done
for file in $cppdefine_FILES; do
dirname=`basename $file`
file=`basename $file`
......@@ -112,7 +110,7 @@ for BRANCH in $BRANCHES; do
fi
fi
done
echo "$COMMIT_FILES"
if test -n "$COMMIT_FILES"; then
for i in $COMMIT_FILES; do
echo "Attempting to commit $i"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment