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
f70adbf8
Commit
f70adbf8
authored
Apr 19, 2013
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support debug builds from branchs or a tag
parent
0c2545c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
15 deletions
+51
-15
scripts/make.mysql.debug.env.bash
scripts/make.mysql.debug.env.bash
+51
-15
No files found.
scripts/make.mysql.debug.env.bash
View file @
f70adbf8
#!/usr/bin/env bash
#!/usr/bin/env bash
function
usage
()
{
function
usage
()
{
echo
"generate a script that builds a debug mysql from subversion"
echo
"generate a script that builds a debug mysql from github repo's"
echo
"--git_tag=
$git_tag
"
echo
"--mysql=
$mysql
--mysql_branch=
$mysql_branch
"
echo
"--jemalloc=
$jemalloc
--jemalloc_branch=
$jemalloc_branch
"
echo
"--ftengine=
$ftengine
--ftengine_branch=
$ftengine_branch
"
echo
"--ftindex=
$ftindex
--ftindex_branch=
$ftindex_branch
"
echo
"--backup=
$backup
--backup_branch=
$backup_branch
"
}
function
github_clone
()
{
local
repo
=
$1
;
local
branch
=
$2
echo
git clone git@github.com:Tokutek/
$repo
echo
'if [ $? != 0 ] ; then exit 1; fi'
echo pushd
$repo
echo
'if [ $? != 0 ] ; then exit 1; fi'
if
[
-z
$git_tag
]
;
then
echo
git checkout
$branch
else
echo
git checkout
$git_tag
fi
echo
'if [ $? != 0 ] ; then exit 1; fi'
echo popd
}
}
shopt
-s
compat31 2>/dev/null
shopt
-s
compat31 2>/dev/null
git_tag
=
mysql
=
mysql
mysql_branch
=
5.5.30
jemalloc
=
jemalloc
jemalloc_branch
=
3.3.1
ftengine
=
ft-engine
ftengine_branch
=
master
ftindex
=
ft-index
ftindex_branch
=
master
backup
=
backup-community
backup_branch
=
master
while
[
$#
-ne
0
]
;
do
while
[
$#
-ne
0
]
;
do
arg
=
$1
;
shift
arg
=
$1
;
shift
if
[[
$arg
=
~
--
(
.
*
)=(
.
*
)
]]
;
then
if
[[
$arg
=
~
--
(
.
*
)=(
.
*
)
]]
;
then
...
@@ -21,44 +54,47 @@ echo installdir=\$PWD/mysql
...
@@ -21,44 +54,47 @@ echo installdir=\$PWD/mysql
echo mkdir
\$
builddir
\$
installdir
echo mkdir
\$
builddir
\$
installdir
echo
'if [ $? != 0 ] ; then exit 1; fi'
echo
'if [ $? != 0 ] ; then exit 1; fi'
echo export
TOKUFRACTALTREE
=
\$
builddir/
ft-
index/install.debug
echo export
TOKUFRACTALTREE
=
\$
builddir/
$ft
index
/install.debug
echo export
TOKUFRACTALTREE_LIBNAME
=
tokudb
echo export
TOKUFRACTALTREE_LIBNAME
=
tokudb
echo export
TOKUPORTABILITY_LIBNAME
=
tokuportability
echo export
TOKUPORTABILITY_LIBNAME
=
tokuportability
echo export
TOKUDB_VERSION
=
0
echo export
TOKUDB_VERSION
=
0
echo
'# checkout the fractal tree'
echo
'# checkout the fractal tree'
echo cd
\$
builddir
echo cd
\$
builddir
echo
git clone git@github.com:Tokutek/jemalloc
github_clone
$jemalloc
$jemalloc_branch
echo
'if [ $? != 0 ] ; then exit 1; fi'
github_clone
$ftindex
$ftindex_branch
echo
git clone git@github.com:Tokutek/ft-index
echo
'if [ $? != 0 ] ; then exit 1; fi'
echo
'# build the fractal tree'
echo
'# build the fractal tree'
echo cd
\$
builddir/ft-index
echo cd
\$
builddir/ft-index
echo mkdir
build.debug
echo mkdir
build.debug
echo cd
build.debug
echo cd
build.debug
echo
CC
=
gcc47
CXX
=
g++47 cmake
-DCMAKE_INSTALL_PREFIX
=
\$
TOKUFRACTALTREE
-D
BUILD_TESTING
=
OFF
-D
CMAKE_BUILD_TYPE
=
Debug
-D
JEMALLOC_SOURCE_DIR
=
\$
builddir/jemalloc ..
echo
CC
=
gcc47
CXX
=
g++47 cmake
-DCMAKE_INSTALL_PREFIX
=
\$
TOKUFRACTALTREE
-D
BUILD_TESTING
=
OFF
-D
CMAKE_BUILD_TYPE
=
Debug
-D
JEMALLOC_SOURCE_DIR
=
\$
builddir/
$
jemalloc
..
echo
'if [ $? != 0 ] ; then exit 1; fi'
echo
'if [ $? != 0 ] ; then exit 1; fi'
echo
make
install
echo
make
install
echo
'if [ $? != 0 ] ; then exit 1; fi'
echo
'if [ $? != 0 ] ; then exit 1; fi'
echo
'# checkout mysql'
echo
'# checkout mysql'
echo cd
\$
builddir
echo cd
\$
builddir
echo
git clone git@github.com:Tokutek/mysql
github_clone
$mysql
$mysql_branch
echo
'if [ $? != 0 ] ; then exit 1; fi'
echo
'# checkout the community backup'
echo
'# checkout the community backup'
echo cd
\$
builddir
echo cd
\$
builddir
echo
git clone git@github.com:Tokutek/backup-community
github_clone
$backup
$backup_branch
echo
'if [ $? != 0 ] ; then exit 1; fi'
echo
'# checkout the tokudb handlerton'
echo
'# checkout the tokudb handlerton'
echo cd
\$
builddir
echo cd
\$
builddir
echo
git clone git@github.com:Tokutek/ft-engine
github_clone
$ftengine
$ftengine_branch
echo
'if [ $? != 0 ] ; then exit 1; fi'
echo
'pushd mysql/storage; ln -s ../../ft-engine/storage/tokudb tokudb; popd'
echo
"pushd
$mysql
/storage"
echo
'pushd mysql; ln -s ../backup-community/backup toku_backup; popd'
echo
'if [ $? != 0 ] ; then exit 1; fi'
echo
"ln -s ../../
$ftengine
/storage/tokudb tokudb"
echo
'if [ $? != 0 ] ; then exit 1; fi'
echo popd
echo
"pushd
$mysql
"
echo
'if [ $? != 0 ] ; then exit 1; fi'
echo
"ln -s ../
$backup
/backup toku_backup"
echo
'if [ $? != 0 ] ; then exit 1; fi'
echo popd
echo
'# build in the mysql directory'
echo
'# build in the mysql directory'
echo cd
\$
builddir/mysql
echo cd
\$
builddir/mysql
...
...
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