2015-09-28 23:39:44 +00:00
|
|
|
#!/bin/bash
|
2020-12-22 08:52:44 +00:00
|
|
|
set -e
|
2022-01-22 23:45:18 +00:00
|
|
|
# you may need to go get github.com/mitchellh/gox first
|
2020-09-13 00:32:45 +00:00
|
|
|
|
2021-06-11 22:18:56 +00:00
|
|
|
CGO_ENABLED=0 gox -ldflags "${LDFLAGS}" -output="build/yq_{{.OS}}_{{.Arch}}" --osarch="darwin/amd64 darwin/arm64 freebsd/386 freebsd/amd64 freebsd/arm linux/386 linux/amd64 linux/arm linux/arm64 linux/mips linux/mips64 linux/mips64le linux/mipsle linux/ppc64 linux/ppc64le linux/s390x netbsd/386 netbsd/amd64 netbsd/arm openbsd/386 openbsd/amd64 windows/386 windows/amd64"
|
2015-09-28 23:39:44 +00:00
|
|
|
|
2020-03-01 21:43:47 +00:00
|
|
|
cd build
|
2021-06-18 13:43:30 +00:00
|
|
|
|
2021-10-17 07:25:36 +00:00
|
|
|
find . -executable -type f | xargs -I {} tar czvf {}.tar.gz {} yq.1 -C ../scripts install-man-page.sh
|
|
|
|
tar czvf yq_man_page_only.tar.gz yq.1 -C ../scripts install-man-page.sh
|
2021-06-18 13:43:30 +00:00
|
|
|
|
2020-12-21 23:25:15 +00:00
|
|
|
rm yq_windows_386.exe.tar.gz
|
|
|
|
rm yq_windows_amd64.exe.tar.gz
|
2020-12-21 10:40:08 +00:00
|
|
|
|
|
|
|
zip yq_windows_386.zip yq_windows_386.exe
|
2021-06-11 22:18:56 +00:00
|
|
|
zip yq_windows_amd64.zip yq_windows_amd64.exe
|
2022-01-22 23:45:18 +00:00
|
|
|
|
|
|
|
rm yq.1
|
|
|
|
|
|
|
|
rhash -r -a . -o checksums
|
|
|
|
|
|
|
|
rhash --list-hashes > checksums_hashes_order
|
|
|
|
|
|
|
|
cp ../scripts/extract-checksum.sh .
|