Hackishly future-proof the compat code
[lightning-exchange-provider:lightning-exchange-provider.git] / Makefile
1 release:
2         rel=$$(ruby -r rexml/document -e 'puts REXML::Document.new($$stdin.read).get_text("RDF/Description/em:version")' < install.rdf) && \
3         git commit -m "release lightning-exchange-provider $$rel" install.rdf && \
4         git describe --dirty | grep -v dirty || exit 1 && \
5         git tag -s -m "lightning-exchange-provider $$rel" v$$rel && \
6         fn=../lightning-exchange-provider-$$rel.xpi; \
7         git archive --format zip -v -o $$fn v$$rel && \
8         gpg --detach-sign $$fn