mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Fix package building using glide, removing glide_enable/disable scripts
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user