File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 4
4
5
5
RELEASE_VERSION=
6
6
buildpath=
7
- builddir=
8
7
9
8
function setuptree() {
10
9
b=$( mktemp -d $buildpath /gh-ostXXXXXX ) || return 1
@@ -19,7 +18,6 @@ function build {
19
18
GOOS=$3
20
19
GOARCH=$4
21
20
22
- builddir=$( setuptree)
23
21
24
22
25
23
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
41
echo " Creating Distro full packages"
42
+ builddir=$( setuptree)
44
43
cp $buildpath /$target $builddir /gh-ost/usr/bin
45
44
cd $buildpath
46
45
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 .
You can’t perform that action at this time.
0 commit comments