1
0
mirror of https://github.com/taigrr/yq synced 2025-01-18 04:53:17 -08:00

Bump debian package to version 3.1-2

Updated all files to be more Debian compliant
Update release instructions for get mod vendor before releasing
This commit is contained in:
Roberto Mier Escandon
2020-02-24 21:27:10 +01:00
committed by Mike Farah
parent d22bfc241b
commit d356fa0d0b
8 changed files with 44 additions and 21 deletions

4
debian/rules vendored
View File

@@ -40,7 +40,7 @@ override_dh_auto_build:
mkdir -p ${SRCDIR}
mkdir -p ${GOBIN}
# copy project to local srcdir to build from there
rsync -avz --progress --exclude=_build --exclude=debian --exclude=tmp. --exclude=go.mod . $(SRCDIR)
rsync -avz --progress --exclude=_build --exclude=debian --exclude=tmp. --exclude=go.mod --exclude=docs . $(SRCDIR)
# build go code
(cd ${SRCDIR} && go install -buildmode=pie ./...)
@@ -48,8 +48,6 @@ override_dh_auto_test:
(cd ${SRCDIR} && go test -v ./...)
override_dh_auto_install:
mkdir -p ${DESTDIR}/${BINDIR}
mkdir -p ${DESTDIR}/${ASSETSDIR}
cp ${GOBIN}/yq ${DESTDIR}/${BINDIR}
cp -f ${SRCDIR}/LICENSE ${DESTDIR}/${ASSETSDIR}
chmod a+x ${DESTDIR}/${BINDIR}/yq