Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
1a49f127
Commit
1a49f127
authored
Jul 24, 2007
by
vasil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Use START_REV instead of $(($1 + 1)) and END_REV instead of $2
* Use standard while-loop instead of the seq command
parent
08a18571
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
export.sh
export.sh
+7
-2
No files found.
export.sh
View file @
1a49f127
...
...
@@ -14,6 +14,9 @@ if [ $# -ne 2 ] ; then
die
"Usage: export.sh revision-number-of-last-snapshot current-revision-number"
fi
START_REV
=
$((
$1
+
1
))
END_REV
=
$2
set
+u
if
test
-z
$EDITOR
;
then
die
"
\$
EDITOR is not set"
...
...
@@ -22,10 +25,11 @@ set -u
rm
-rf
to-mysql
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
seq
$((
$1
+
1
))
$2
|while
read
REV
REV
=
$START_REV
while
[
$REV
-le
$END_REV
]
do
PATCH
=
to-mysql/patches/r
$REV
.patch
svn log
-v
-r
$REV
>
$PATCH
...
...
@@ -35,6 +39,7 @@ do
else
rm
$PATCH
fi
REV
=
$((
$REV
+
1
))
done
cd
to-mysql/storage/innobase
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment