aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2023-12-10 21:16:21 -0500
committerKyle Meyer <kyle@kyleam.com>2023-12-10 21:16:21 -0500
commit69a1761402b6cd10b93fecbddfbdbd822a1c6cfa (patch)
treed4b0cbb732057b98112621c8e88733bbe4255d5e /Makefile
parent79ca6d2345c0a31f594e40fd429ce9e16d990933 (diff)
downloadpiem-69a1761402b6cd10b93fecbddfbdbd822a1c6cfa.tar.gz
make: Add target to create tar signature for cgit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 917cbaa..345dcf0 100644
--- a/Makefile
+++ b/Makefile
@@ -57,3 +57,11 @@ tests/piem-tests.elc: tests/piem-tests.el piem.elc
.texi.html:
makeinfo --html --css-ref=manual.css -c TOP_NODE_UP_URL=/ --no-split \
-o $@ $<
+
+sign-tar:
+ tag="$$(git describe --abbrev=0)"; \
+ object=$$(git archive --format tar \
+ --prefix "piem-$${tag#v}/" "$$tag" | \
+ gpg --output - --armor --detach-sign | \
+ git hash-object -w --stdin); \
+ git notes --ref=refs/notes/signatures/tar add -C "$$object" "$$tag"