mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-12 05:38:04 +00:00
Inc Deb version
This commit is contained in:
parent
83c13ce392
commit
69fae2d9cb
@ -44,7 +44,8 @@ rm /etc/myfile.tmp
|
|||||||
```
|
```
|
||||||
|
|
||||||
### On Ubuntu 16.04 or higher from Debian package:
|
### On Ubuntu 16.04 or higher from Debian package:
|
||||||
```
|
```sh
|
||||||
|
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CC86BB64
|
||||||
sudo add-apt-repository ppa:rmescandon/yq
|
sudo add-apt-repository ppa:rmescandon/yq
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install yq -y
|
sudo apt install yq -y
|
||||||
|
13
debian/changelog
vendored
13
debian/changelog
vendored
@ -1,3 +1,16 @@
|
|||||||
|
yq (3.1.1) eoan; urgency=medium
|
||||||
|
|
||||||
|
* Keeps yaml comments and formatting, can specify yaml tags when updating.
|
||||||
|
* Handles anchors! https://github.com/mikefarah/yq/issues/310, https://github.com/mikefarah/yq/issues/178
|
||||||
|
* Can print out matching paths and values when splatting https://github.com/mikefarah/yq/issues/20
|
||||||
|
* JSON output works for all commands! Yaml files with multiple documents are printed out as one JSON document per line.
|
||||||
|
* Deep splat (**) to match arbitrary paths
|
||||||
|
* Update scripts file format has changed to be more powerful
|
||||||
|
* Reading and splatting, matching results are printed once per line
|
||||||
|
* Bugfixing
|
||||||
|
|
||||||
|
-- Roberto Mier Escandon <rmescandon@gmail.com> Tue, 11 Feb 2020 22:18:24 +0100
|
||||||
|
|
||||||
yq (2.2-1) bionic; urgency=medium
|
yq (2.2-1) bionic; urgency=medium
|
||||||
|
|
||||||
* Added Windows support for the "--inplace" command flag
|
* Added Windows support for the "--inplace" command flag
|
||||||
|
21
debian/control
vendored
21
debian/control
vendored
@ -1,22 +1,23 @@
|
|||||||
Source: yq
|
Source: yq
|
||||||
Section: devel
|
Section: devel
|
||||||
Priority: extra
|
Priority: optional
|
||||||
Maintainer: Roberto Mier Escandón <rmescandon@gmail.com>
|
Maintainer: Roberto Mier Escandón <rmescandon@gmail.com>
|
||||||
Build-Depends: debhelper (>= 9),
|
Build-Depends: debhelper (>=10),
|
||||||
dh-golang,
|
dh-golang (>=1.34),
|
||||||
golang-1.10-go,
|
golang-1.13,
|
||||||
|
dpkg-dev,
|
||||||
rsync
|
rsync
|
||||||
Standards-Version: 3.9.6
|
Standards-Version: 3.9.6
|
||||||
Homepage: https://github.com/mikefarah/yq.git
|
Homepage: https://github.com/mikefarah/yq.git
|
||||||
Vcs-Browser: https://github.com/mikefarah/yq.git
|
Vcs-Browser: https://github.com/mikefarah/yq.git
|
||||||
Vcs-Git: https://github.com/mikefarah/yq.git
|
Vcs-Git: https://github.com/mikefarah/yq.git
|
||||||
|
XS-Go-Import-Path: github.com/mikefarah/yq
|
||||||
|
XSBC-Original-Maintainer: Roberto Mier Escandón <rmescandon@gmail.com>
|
||||||
|
|
||||||
Package: yq
|
Package: yq
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Built-Using: ${misc:Built-Using}
|
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||||
Depends: ${shlibs:Depends},
|
Description: a lightweight and portable command-line YAML processor
|
||||||
${misc:Depends}
|
|
||||||
Description:
|
|
||||||
a lightweight and portable command-line YAML processor
|
|
||||||
.
|
.
|
||||||
The aim of the project is to be the [jq](https://github.com/stedolan/jq) or sed of yaml files.
|
The aim of the project is to be the
|
||||||
|
[jq](https://github.com/stedolan/jq) or sed of yaml files.
|
||||||
|
22
debian/rules
vendored
22
debian/rules
vendored
@ -14,33 +14,35 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
PROJECT := yq
|
PROJECT := yq
|
||||||
OWNER := mikefarah
|
OWNER := mikefarah
|
||||||
REPO := github.com
|
REPO := github.com
|
||||||
GOVERSION := 1.10
|
GOVERSION := 1.13
|
||||||
|
|
||||||
export DH_OPTIONS
|
export DH_OPTIONS
|
||||||
export DH_GOPKG := ${REPO}/${OWNER}/${PROJECT}
|
export DH_GOPKG := ${REPO}/${OWNER}/${PROJECT}
|
||||||
export GOROOT := /usr/lib/go-${GOVERSION}
|
export GOROOT := /usr/lib/go-${GOVERSION}
|
||||||
export GOPATH := ${CURDIR}/_build
|
export GOPATH := ${CURDIR}/_build
|
||||||
export GOBIN := ${GOPATH}/bin
|
export GOBIN := ${GOPATH}/bin
|
||||||
export PATH := ${GOROOT}/bin:${GOBIN}:${PATH}
|
export PATH := ${GOROOT}/bin:${GOBIN}:${PATH}
|
||||||
BLDPATH := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
|
export GOCACHE := /tmp/gocache
|
||||||
SRCDIR := ${CURDIR}/_build/src/${DH_GOPKG}
|
export GOFLAGS := -mod=vendor
|
||||||
|
|
||||||
|
SRCDIR := ${GOPATH}/src/${DH_GOPKG}
|
||||||
DESTDIR := ${CURDIR}/debian/${PROJECT}
|
DESTDIR := ${CURDIR}/debian/${PROJECT}
|
||||||
BINDIR := /usr/bin
|
BINDIR := /usr/bin
|
||||||
ASSETSDIR := /usr/share/${PROJECT}
|
ASSETSDIR := /usr/share/${PROJECT}
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@ --buildsystem=golang --with=golang
|
dh $@ --builddirectory=${GOPATH} --buildsystem=golang
|
||||||
|
|
||||||
override_dh_auto_build:
|
override_dh_auto_build:
|
||||||
mkdir -p ${SRCDIR}
|
mkdir -p ${SRCDIR}
|
||||||
mkdir -p ${GOBIN}
|
mkdir -p ${GOBIN}
|
||||||
# copy project to local srcdir to build from there
|
# copy project to local srcdir to build from there
|
||||||
rsync -avz --progress --exclude=obj-${BLDPATH} --exclude=debian . $(SRCDIR)
|
rsync -avz --progress --exclude=_build --exclude=debian --exclude=tmp. --exclude=go.mod . $(SRCDIR)
|
||||||
# build go code
|
# build go code
|
||||||
(cd ${SRCDIR} && go install ./...)
|
(cd ${SRCDIR} && go install -buildmode=pie ./...)
|
||||||
|
|
||||||
override_dh_auto_test:
|
override_dh_auto_test:
|
||||||
(cd ${SRCDIR} && go test -v ./...)
|
(cd ${SRCDIR} && go test -v ./...)
|
||||||
@ -48,12 +50,10 @@ override_dh_auto_test:
|
|||||||
override_dh_auto_install:
|
override_dh_auto_install:
|
||||||
mkdir -p ${DESTDIR}/${BINDIR}
|
mkdir -p ${DESTDIR}/${BINDIR}
|
||||||
mkdir -p ${DESTDIR}/${ASSETSDIR}
|
mkdir -p ${DESTDIR}/${ASSETSDIR}
|
||||||
cp ${CURDIR}/_build/bin/yq ${DESTDIR}/${BINDIR}
|
cp ${GOBIN}/yq ${DESTDIR}/${BINDIR}
|
||||||
cp -rf ${SRCDIR}/LICENSE ${DESTDIR}/${ASSETSDIR}
|
cp -f ${SRCDIR}/LICENSE ${DESTDIR}/${ASSETSDIR}
|
||||||
cp -rf ${SRCDIR}/README.md ${DESTDIR}/${PLUGINSDIR}
|
|
||||||
chmod a+x ${DESTDIR}/${BINDIR}/yq
|
chmod a+x ${DESTDIR}/${BINDIR}/yq
|
||||||
|
|
||||||
override_dh_auto_clean:
|
override_dh_auto_clean:
|
||||||
dh_clean
|
dh_clean
|
||||||
rm -rf ${CURDIR}/obj-${BLDPATH}
|
|
||||||
rm -rf ${CURDIR}/_build
|
rm -rf ${CURDIR}/_build
|
||||||
|
Loading…
Reference in New Issue
Block a user