[pkg-go] Bash script to help automate the work of upgrading a Debian Go libraries
Anthony Fok
foka at debian.org
Sat Dec 19 06:28:26 UTC 2015
Hello all!
Attached is a somewhat quick-and-dirty Bash script to help me automate
much of the work in upgrading/refreshing Go libraries for Debian.
Hope you find this helpful too! It is also available for download
here:
https://gist.github.com/anthonyfok/8d3a2909eb8c8211456b
Caveats:
1. It does not work out of the box...
unless you compiled your own dh-make-golang from source like me
(to handle unannotated/lightweight git tags) and had GOPATH set to ~/go.
So yes, you'll have to tweak the script before using. :-)
2. I probably should have used mktemp rather than setting TMPDIR statically
to /tmp/tmp-dh-make-golang ... So yes, until this is fixed,
please don't run
more than one instance at a time.
3. It is currently only for upstream repositories that do not make
tarball releases,
as it only (blindly) downloads the latest upstream snapshot.
So, there you have it! Hope this little script helps save you some time too!
And yes, feel free to extend the script to your needs!
Cheers,
Anthony
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build-latest-go-package.sh
Type: application/x-sh
Size: 3715 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-go-maintainers/attachments/20151218/b4ce464d/attachment.sh>
More information about the Pkg-go-maintainers
mailing list