Commit b74d61df authored by marko's avatar marko

Port r543 from innodb/branches/5.0: Port r29 from innodb-4.1/trunk:

export.sh: Generate the files to-mysql/patches/r$REV.patch
containing the output of "svn log" and "svn diff" for each change.
parent 082d3b0c
...@@ -21,16 +21,24 @@ fi ...@@ -21,16 +21,24 @@ fi
set -u set -u
rm -rf to-mysql rm -rf to-mysql
mkdir -p to-mysql/storage/ mkdir to-mysql{,/storage,/patches,/mysql-test{,/t,/r,/include}}
svn log -v -r "$(($1 + 1)):BASE" > to-mysql/log svn log -v -r "$(($1 + 1)):BASE" > to-mysql/log
svn export -q . to-mysql/storage/innobase svn export -q . to-mysql/storage/innobase
cd to-mysql
mkdir -p sql mysql-test/t mysql-test/r mysql-test/include seq $(($1+1)) $2|while read REV
cd storage/innobase do
PATCH=to-mysql/patches/r$REV.patch
mv handler/* ../../sql svn log -v -r$REV > $PATCH
rmdir handler if [ $(wc -c < $PATCH) -gt 73 ]
then
svn diff -r$(($REV-1)):$REV >> $PATCH
else
rm $PATCH
fi
done
cd to-mysql/storage/innobase
mv handler ../../sql
mv mysql-test/*.test mysql-test/*.opt ../../mysql-test/t mv mysql-test/*.test mysql-test/*.opt ../../mysql-test/t
mv mysql-test/*.result ../../mysql-test/r mv mysql-test/*.result ../../mysql-test/r
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment