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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
e42ef4af
Commit
e42ef4af
authored
Oct 09, 2013
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#126 fix upload to amazon s3 file list
parent
60267e61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
scripts/tokutek.make.mysql.bash
scripts/tokutek.make.mysql.bash
+4
-4
No files found.
scripts/tokutek.make.mysql.bash
View file @
e42ef4af
...
...
@@ -7,12 +7,12 @@ function usage() {
# copy build files to amazon s3
function
copy_to_s3
()
{
local
s3_build_bucket
=
$1
;
local
s3_release_bucket
=
$2
local
s3_build_bucket
=
$1
;
local
s3_release_bucket
=
$2
;
local
mysql_distro
=
$3
local
ts
=
$(
date
+%s
)
local
ymd
=
$(
date
+%Y%m%d
-d
@
$ts
)
local
ym
=
$(
date
+%Y%m
-d
@
$ts
)
local
exitcode
=
0
;
local
r
=
0
for
f
in
$(
find
.
-maxdepth
1
\(
-name
'*.tar.gz*'
-o
-name
'*.rpm*'
\)
)
;
do
for
f
in
$(
find
.
-maxdepth
1
\(
-name
$mysql_distro
'*.tar.gz*'
-o
-name
$mysql_distro
'*.rpm*'
\)
)
;
do
f
=
$(
basename
$f
)
echo
`
date
`
s3put
$s3_build_bucket
$f
s3put
$s3_build_bucket
$f
$f
...
...
@@ -33,7 +33,7 @@ function copy_to_s3() {
if
[
$r
!=
0
]
;
then
exitcode
=
1
else
for
f
in
$(
find
.
-maxdepth
1
\(
-name
'*.tar.gz*'
-o
-name
'*.rpm*'
\)
)
;
do
for
f
in
$(
find
.
-maxdepth
1
\(
-name
$mysql_distro
'*.tar.gz*'
-o
-name
$mysql_distro
'*.rpm*'
\)
)
;
do
f
=
$(
basename
$f
)
echo
`
date
`
s3copykey
$s3_release_bucket
-
$git_tag
$f
s3copykey
$s3_release_bucket
-
$git_tag
$f
$s3_build_bucket
$f
...
...
@@ -99,7 +99,7 @@ done
# copy to s3
if
[
$s3
!=
0
]
;
then
copy_to_s3
$s3_build_bucket
$s3_release_bucket
copy_to_s3
$s3_build_bucket
$s3_release_bucket
$mysql_distro
if
[
$?
!=
0
]
;
then
exitcode
=
1
;
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