aboutsummaryrefslogtreecommitdiffstats
path: root/misc/haiku
diff options
context:
space:
mode:
authorGravatar Anna Arad <4895022+annagrram@users.noreply.github.com>2020-01-13 23:38:20 +0200
committerGravatar Mischievous Meerkat <engineerarun@gmail.com>2020-01-14 03:08:20 +0530
commit44871dd9d7c54f2f6836c560bfe7061c32b01878 (patch)
treef95632c5f3f9fcf2ad5bf98625177409420739c8 /misc/haiku
parent62ae7e0a743f91033382909d64e47b60098c9142 (diff)
downloadnnn-44871dd9d7c54f2f6836c560bfe7061c32b01878.tar.gz
Update Haiku Makefile with changes of original (#435)
Diffstat (limited to 'misc/haiku')
-rw-r--r--misc/haiku/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/misc/haiku/Makefile b/misc/haiku/Makefile
index a152c3c..843df9d 100644
--- a/misc/haiku/Makefile
+++ b/misc/haiku/Makefile
@@ -108,9 +108,19 @@ dist:
tar -cf - nnn-$(VERSION) | gzip > nnn-$(VERSION).tar.gz
$(RM) -r nnn-$(VERSION)
+sign:
+ git archive -o nnn-$(VERSION).tar.gz --format tar.gz --prefix=nnn-$(VERSION)/ v$(VERSION)
+ gpg --detach-sign --yes nnn-$(VERSION).tar.gz
+ rm -f nnn-$(VERSION).tar.gz
+
+ $(eval ID=$(shell curl -s 'https://api.github.com/repos/jarun/nnn/releases/tags/v$(VERSION)' | jq .id))
+ curl -XPOST 'https://uploads.github.com/repos/jarun/nnn/releases/$(ID)/assets?name=nnn-$(VERSION).tar.gz.sig' \
+ -H 'Authorization: token $(NNN_SIG_UPLOAD_TOKEN)' -H 'Content-Type: application/pgp-signature' \
+ --upload-file nnn-$(VERSION).tar.gz.sig
+
clean:
- $(RM) -f $(BIN) $(OBJS) nnn-$(VERSION).tar.gz
+ $(RM) -f $(BIN) $(OBJS) nnn-$(VERSION).tar.gz *.sig
skip: ;
-.PHONY: all debug install uninstall strip dist clean
+.PHONY: all install uninstall strip dist sign clean