Fix package building using glide, removing glide_enable/disable scripts

This commit is contained in:
DanB
2015-09-21 09:43:07 +02:00
parent f886c79bab
commit 6ec74c44ba
3 changed files with 3 additions and 30 deletions

View File

@@ -1,14 +0,0 @@
#! /usr/bin/env sh
echo "Disabling Glide..."
echo "export GO15VENDOREXPERIMENT=0"
export GO15VENDOREXPERIMENT=0
echo "rm -rf vendor"
rm -rf vendor
go get -v -u github.com/cgrates/cgrates/...
gg=$?
exit $gg

View File

@@ -1,15 +0,0 @@
#! /usr/bin/env sh
echo "export GO15VENDOREXPERIMENT=1"
export GO15VENDOREXPERIMENT=1
echo "Executing Glide..."
go get -v github.com/Masterminds/glide
gl=$?
$GOPATH/bin/glide up
gu=$?
exit $gl || $gu

View File

@@ -5,6 +5,7 @@
export DH_VERBOSE=1
export GOPATH=$(CURDIR)
export GO15VENDOREXPERIMENT=1
PKGDIR=debian/cgrates
SRCDIR=src/github.com/cgrates/cgrates
@@ -23,7 +24,8 @@ binary-arch: clean
dh_installdirs
mkdir -p src/github.com/cgrates
ln -sf $(CURDIR) src/github.com/cgrates
exec $(CURDIR)/glide_enable.sh
go get -v github.com/Masterminds/glide
$(GOPATH)/bin/glide up
exec $(CURDIR)/build.sh
mkdir -p $(PKGDIR)/usr/bin
cp $(GOPATH)/bin/cgr-* $(PKGDIR)/usr/bin/