mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
* Use START_REV instead of $(($1 + 1)) and END_REV instead of $2
* Use standard while-loop instead of the seq command
This commit is contained in:
parent
08a1857151
commit
1a49f127c3
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
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
|
||||||
else
|
else
|
||||||
rm $PATCH
|
rm $PATCH
|
||||||
fi
|
fi
|
||||||
|
REV=$(($REV + 1))
|
||||||
done
|
done
|
||||||
|
|
||||||
cd to-mysql/storage/innobase
|
cd to-mysql/storage/innobase
|
||||||
|
|
Loading…
Reference in a new issue