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
6a5b1ac2
Commit
6a5b1ac2
authored
May 29, 2013
by
Yoni Fogel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add local cache option to make.mysql.debug.env.bash
parent
1200ca6d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
3 deletions
+21
-3
.gitignore
.gitignore
+1
-0
scripts/make.mysql.debug.env.bash
scripts/make.mysql.debug.env.bash
+20
-3
No files found.
.gitignore
View file @
6a5b1ac2
...
...
@@ -26,3 +26,4 @@
*.py[cod]
.*.swp
scripts/make.mysql.debug.env.bash
View file @
6a5b1ac2
#!/usr/bin/env bash
set
-e
set
-e
-u
function
usage
()
{
echo
"build a debug mysql in the current directory"
...
...
@@ -12,12 +12,27 @@ function usage() {
echo
"--jemalloc=
$jemalloc
--jemalloc_tree=
$jemalloc_tree
"
echo
"--backup=
$backup
--backup_tree=
$backup_tree
"
echo
"--cc=
$cc
--cxx=
$cxx
"
echo
"--local_cache_dir=
$local_cache_dir
--local_cache_update=
$local_cache_update
"
}
function
github_clone
()
{
local
repo
=
$1
;
local
tree
=
$2
git clone git@github.com:Tokutek/
$repo
if
[
$?
!=
0
]
;
then
exit
1
;
fi
if
[[
-z
"
$local_cache_dir
"
]]
;
then
git clone git@github.com:Tokutek/
$repo
if
[
$?
!=
0
]
;
then
exit
1
;
fi
else
if
((
"
$local_cache_update
"
))
;
then
pushd
$local_cache_dir
/
$repo
.git
git fetch
--all
-p
-t
popd
fi
git clone
$local_cache_dir
/
$repo
.git
if
[
$?
!=
0
]
;
then
exit
1
;
fi
pushd
$repo
git remote set-url origin git@github.com:Tokutek/
$repo
$local_cache_dir
/
$repo
.git
popd
fi
pushd
$repo
if
[
$?
!=
0
]
;
then
exit
1
;
fi
if
[
-z
$git_tag
]
;
then
...
...
@@ -44,6 +59,8 @@ backup=backup-community
backup_tree
=
master
cc
=
gcc47
cxx
=
g++47
local_cache_dir
=
local_cache_update
=
1
while
[
$#
-ne
0
]
;
do
arg
=
$1
;
shift
...
...
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