caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] [ANN] opam-query 1.0
@ 2014-11-17 18:07 Peter Zotov
  0 siblings, 0 replies; only message in thread
From: Peter Zotov @ 2014-11-17 18:07 UTC (permalink / raw)
  To: caml-list

Hello,

I'm glad to announce the release of opam-query 1.0.
It will be available in OPAM shortly.

opam-query is a tool that allows querying the OPAM package
description files from shell scripts, similar to `oasis query`.

Most interestingly, it can be used to automate releasing
OPAM packages. For example, the following Makefile snippet
allows to release packages by merely changing the `version:'
field and running `make release'. (Right now, only GitHub URLs
are supported by --archive.)

     VERSION      = $(shell opam query --version)
     NAME_VERSION = $(shell opam query --name-version)
     ARCHIVE      = $(shell opam query --archive)

     release:
       git tag -a v$(VERSION) -m "Version $(VERSION)."
       git push origin v$(VERSION)
       opam publish prepare $(NAME_VERSION) $(ARCHIVE)
       opam publish submit $(NAME_VERSION)
       rm -rf $(NAME_VERSION)

     .PHONY: release

Please see the README[1] for complete documentation.

   [1]: https://github.com/whitequark/opam-query

-- 
Peter Zotov

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-11-17 18:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-17 18:07 [Caml-list] [ANN] opam-query 1.0 Peter Zotov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).