mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Update Haiku Makefile with changes of original (#435)
This commit is contained in:
parent
62ae7e0a74
commit
44871dd9d7
|
@ -108,9 +108,19 @@ dist:
|
||||||
tar -cf - nnn-$(VERSION) | gzip > nnn-$(VERSION).tar.gz
|
tar -cf - nnn-$(VERSION) | gzip > nnn-$(VERSION).tar.gz
|
||||||
$(RM) -r nnn-$(VERSION)
|
$(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:
|
clean:
|
||||||
$(RM) -f $(BIN) $(OBJS) nnn-$(VERSION).tar.gz
|
$(RM) -f $(BIN) $(OBJS) nnn-$(VERSION).tar.gz *.sig
|
||||||
|
|
||||||
skip: ;
|
skip: ;
|
||||||
|
|
||||||
.PHONY: all debug install uninstall strip dist clean
|
.PHONY: all install uninstall strip dist sign clean
|
||||||
|
|
Loading…
Reference in a new issue