Commit d69d10ac authored by vasil's avatar vasil

* Use START_REV instead of $(($1 + 1)) and END_REV instead of $2

* Use standard while-loop instead of the seq command
parent 7fc6a02a
...@@ -14,6 +14,9 @@ if [ $# -ne 2 ] ; then ...@@ -14,6 +14,9 @@ if [ $# -ne 2 ] ; then
die "Usage: export.sh revision-number-of-last-snapshot current-revision-number" die "Usage: export.sh revision-number-of-last-snapshot current-revision-number"
fi fi
START_REV=$(($1 + 1))
END_REV=$2
set +u set +u
if test -z $EDITOR; then if test -z $EDITOR; then
die "\$EDITOR is not set" die "\$EDITOR is not set"
...@@ -22,10 +25,11 @@ set -u ...@@ -22,10 +25,11 @@ set -u
rm -rf to-mysql rm -rf to-mysql
mkdir to-mysql{,/storage,/patches,/mysql-test{,/t,/r,/include}} mkdir to-mysql{,/storage,/patches,/mysql-test{,/t,/r,/include}}
svn log -v -r "$(($1 + 1)):BASE" > to-mysql/log svn log -v -r "$START_REV:BASE" > to-mysql/log
svn export -q . to-mysql/storage/innobase svn export -q . to-mysql/storage/innobase
seq $(($1+1)) $2|while read REV REV=$START_REV
while [ $REV -le $END_REV ]
do do
PATCH=to-mysql/patches/r$REV.patch PATCH=to-mysql/patches/r$REV.patch
svn log -v -r$REV > $PATCH svn log -v -r$REV > $PATCH
...@@ -35,6 +39,7 @@ do ...@@ -35,6 +39,7 @@ do
else else
rm $PATCH rm $PATCH
fi fi
REV=$(($REV + 1))
done done
cd to-mysql/storage/innobase cd to-mysql/storage/innobase
......
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