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
f7c56379
Commit
f7c56379
authored
Oct 23, 2013
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify the release bucket
parent
3f1d5ddc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
scripts/tokutek.make.mysql.bash
scripts/tokutek.make.mysql.bash
+7
-7
No files found.
scripts/tokutek.make.mysql.bash
View file @
f7c56379
...
@@ -7,7 +7,8 @@ function usage() {
...
@@ -7,7 +7,8 @@ function usage() {
# copy build files to amazon s3
# copy build files to amazon s3
function
copy_to_s3
()
{
function
copy_to_s3
()
{
local
s3_build_bucket
=
$1
;
local
s3_release_bucket
=
$2
;
local
mysql_distro
=
$3
local
s3_build_bucket
=
$1
;
shift
local
mysql_distro
=
$1
;
shift
local
ts
=
$(
date
+%s
)
local
ts
=
$(
date
+%s
)
local
ymd
=
$(
date
+%Y%m%d
-d
@
$ts
)
local
ymd
=
$(
date
+%Y%m%d
-d
@
$ts
)
local
exitcode
=
0
;
local
r
=
0
local
exitcode
=
0
;
local
r
=
0
...
@@ -25,16 +26,16 @@ function copy_to_s3() {
...
@@ -25,16 +26,16 @@ function copy_to_s3() {
if
[
$r
!=
0
]
;
then
exitcode
=
1
;
fi
if
[
$r
!=
0
]
;
then
exitcode
=
1
;
fi
done
done
if
[[
$git_tag
=
~ tokudb-.
*
]]
;
then
if
[[
$git_tag
=
~ tokudb-.
*
]]
;
then
s3mkbucket
$
s3_release_bucket
-
$
git_tag
s3mkbucket
$git_tag
if
[
$r
!=
0
]
;
then
if
[
$r
!=
0
]
;
then
exitcode
=
1
exitcode
=
1
else
else
for
f
in
$(
find
.
-maxdepth
1
\(
-name
$mysql_distro
'*.tar.gz*'
-o
-name
$mysql_distro
'*.rpm*'
\)
)
;
do
for
f
in
$(
find
.
-maxdepth
1
\(
-name
$mysql_distro
'*.tar.gz*'
-o
-name
$mysql_distro
'*.rpm*'
\)
)
;
do
f
=
$(
basename
$f
)
f
=
$(
basename
$f
)
echo
`
date
`
s3copykey
$
s3_release_bucket
-
$
git_tag
$f
echo
`
date
`
s3copykey
$git_tag
$f
s3copykey
$
s3_release_bucket
-
$
git_tag
$f
$s3_build_bucket
$f
s3copykey
$git_tag
$f
$s3_build_bucket
$f
r
=
$?
r
=
$?
echo
`
date
`
s3copykey
$
s3_release_bucket
-
$
git_tag
$f
$r
echo
`
date
`
s3copykey
$git_tag
$f
$r
if
[
$r
!=
0
]
;
then
exitcode
=
1
;
fi
if
[
$r
!=
0
]
;
then
exitcode
=
1
;
fi
done
done
fi
fi
...
@@ -45,7 +46,6 @@ function copy_to_s3() {
...
@@ -45,7 +46,6 @@ function copy_to_s3() {
mysqlbuild
=
mysqlbuild
=
s3
=
1
s3
=
1
s3_build_bucket
=
tokutek-mysql-build
s3_build_bucket
=
tokutek-mysql-build
s3_release_bucket
=
tokutek-mysql
system
=
$(
uname
-s
|
tr
'[:upper:]'
'[:lower:]'
)
system
=
$(
uname
-s
|
tr
'[:upper:]'
'[:lower:]'
)
arch
=
$(
uname
-m
|
tr
'[:upper:]'
'[:lower:]'
)
arch
=
$(
uname
-m
|
tr
'[:upper:]'
'[:lower:]'
)
...
@@ -95,7 +95,7 @@ done
...
@@ -95,7 +95,7 @@ done
# copy to s3
# copy to s3
if
[
$s3
!=
0
]
;
then
if
[
$s3
!=
0
]
;
then
copy_to_s3
$s3_build_bucket
$
s3_release_bucket
$
mysql_distro
copy_to_s3
$s3_build_bucket
$mysql_distro
if
[
$?
!=
0
]
;
then
exitcode
=
1
;
fi
if
[
$?
!=
0
]
;
then
exitcode
=
1
;
fi
fi
fi
...
...
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