We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0454c5e commit 609890aCopy full SHA for 609890a
1 file changed
build.sh
@@ -4,7 +4,6 @@
4
5
RELEASE_VERSION=
6
buildpath=
7
-builddir=
8
9
function setuptree() {
10
b=$( mktemp -d $buildpath/gh-ostXXXXXX ) || return 1
@@ -19,7 +18,6 @@ function build {
19
18
GOOS=$3
20
GOARCH=$4
21
22
- builddir=$(setuptree)
23
24
25
if ! go version | egrep -q 'go(1[.]9|1[.]1[0-9])' ; then
@@ -41,6 +39,7 @@ function build {
41
39
42
40
if [ "$GOOS" == "linux" ] ; then
43
echo "Creating Distro full packages"
+ builddir=$(setuptree)
44
cp $buildpath/$target $builddir/gh-ost/usr/bin
45
cd $buildpath
46
fpm -v "${RELEASE_VERSION}" --epoch 1 -f -s dir -n gh-ost -m shlomi-noach --description "GitHub's Online Schema Migrations for MySQL " --url "https://github.com/github/gh-ost" --vendor "GitHub" --license "Apache 2.0" -C $builddir/gh-ost --prefix=/ -t rpm .
0 commit comments