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
0d02f986
Commit
0d02f986
authored
May 01, 2013
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow tarball and/or rpm builds
parent
2f93224c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
9 deletions
+24
-9
scripts/make.mysql.bash
scripts/make.mysql.bash
+24
-9
No files found.
scripts/make.mysql.bash
View file @
0d02f986
...
...
@@ -176,8 +176,10 @@ function generate_cmake_cmd () {
echo
-n
" "
\
-D
COMPILATION_COMMENT
=
\"
TokuDB Enterprise Server
\(
GPL
\)\"
fi
}
if
[
$system
=
linux
-a
$build_rpm
!=
0
-a
$mysql_distro
=
mariadb
]
;
then
function
generate_cmake_cmd_rpm
()
{
if
[
$system
=
linux
-a
$mysql_distro
=
mariadb
]
;
then
linux_distro
=
linux
if
[
-f
/etc/issue
]
;
then
if
[[
"
$(
head
-1
/etc/issue
)
"
=
~
"Red Hat Enterprise Linux Server release ([56])"
]]
;
then
...
...
@@ -188,17 +190,30 @@ function generate_cmake_cmd () {
fi
fi
echo
-n
" "
-D
RPM
=
$linux_distro
elif
[
$system
=
linux
-a
$mysql_distro
!=
mariadb
]
;
then
echo
1>&2
"I don't know how to build rpms for mysql yet."
exit
1
fi
}
mkdir
-p
build.
$cmake_build_type
cd
build.
$cmake_build_type
if
[
$build_tgz
!=
0
]
;
then
mkdir
-p
build.
$cmake_build_type
pushd
build.
$cmake_build_type
# actually build
eval
$(
generate_cmake_cmd
)
..
make package
-j
$makejobs
popd
fi
if
[
$build_tgz
!=
0
]
;
then
# actually build
eval
$(
generate_cmake_cmd
)
..
make package
-j
$makejobs
mkdir
-p
build.rpm.
$cmake_build_type
pushd
build.rpm.
$cmake_build_type
if
[
$system
=
linux
-a
$build_rpm
!=
0
-a
$mysql_distro
!=
mariadb
]
;
then
echo
1>&2
"I don't know how to build rpms for mysql yet."
exit
1
# actually build
eval
$(
generate_cmake_cmd
;
generate_cmake_cmd_rpm
)
..
make package
-j
$makejobs
popd
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