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
c88937f1
Commit
c88937f1
authored
Jul 24, 2013
by
rich prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#45 test build from source tarballs
parent
fbb99837
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
scripts/testbuildfromsrc.bash
scripts/testbuildfromsrc.bash
+32
-0
No files found.
scripts/testbuildfromsrc.bash
0 → 100644
View file @
c88937f1
#!/usr/bin/env bash
# for all source tarballs and their coresponding md5 files, build a binary release tarball
system
=
$(
uname
-s
|tr
[
:upper:]
[
:lower:]
)
arch
=
$(
uname
-m
)
function
expand
()
{
echo
$*
|
tr
,:
" "
}
for
f
in
*
.md5
;
do
if
[[
$f
=
~
(
.
*
)
.tar.gz.md5
]]
;
then
mysqlsrc
=
${
BASH_REMATCH
[1]
}
else
exit
1
fi
if
[
-d
$mysqlsrc
]
;
then continue
;
fi
md5sum
--check
$mysqlsrc
.tar.gz.md5
if
[
$?
!=
0
]
;
then
exit
1
;
fi
tar
xzf
$mysqlsrc
.tar.gz
if
[
$?
!=
0
]
;
then
exit
1
;
fi
mkdir
$mysqlsrc
/build.RelWithDebInfo
pushd
$mysqlsrc
/build.RelWithDebInfo
if
[
$?
!=
0
]
;
then
exit
1
;
fi
cmake
-D
BUILD_CONFIG
=
mysql_release
-D
CMAKE_BUILD_TYPE
=
RelWithDebInfo
-D
BUILD_TESTING
=
OFF ..
if
[
$?
!=
0
]
;
then
exit
1
;
fi
make
-j4
package
if
[
$?
!=
0
]
;
then
exit
1
;
fi
if
[
!
-f
$mysqlsrc
-
$system
-
$arch
.tar.gz
]
;
then
exit
1
;
fi
popd
done
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