diff options
author | Kyle Meyer <kyle@kyleam.com> | 2023-12-10 21:16:21 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2023-12-10 21:16:21 -0500 |
commit | 69a1761402b6cd10b93fecbddfbdbd822a1c6cfa (patch) | |
tree | d4b0cbb732057b98112621c8e88733bbe4255d5e | |
parent | 79ca6d2345c0a31f594e40fd429ce9e16d990933 (diff) | |
download | piem-69a1761402b6cd10b93fecbddfbdbd822a1c6cfa.tar.gz |
make: Add target to create tar signature for cgit
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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" |