commit 88e6992479bcb51851c032eb49cef8b3e767054e
parent c9099743767d8c2e0c9a1d067fab9966b672641c
Author: William Casarin <jb55@jb55.com>
Date: Sun, 5 Dec 2021 16:14:22 -0800
dist: update makefile
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
@@ -3,6 +3,6 @@
/.build-result
/.buildcmd
/.direnv
-/dist
+/dist/*.tar.gz
/.envrc
/default.nix
diff --git a/Makefile b/Makefile
@@ -13,6 +13,9 @@ dist:
@mkdir -p dist
@grep '^#define VERSION' datefmt.c | sed -En 's,.*"([^"]+)".*,\1,p' | xargs -I{} git archive HEAD --format tar.gz --prefix datefmt-{}/ -o dist/datefmt-{}.tar.gz
@ls -dt dist/* | head -n1 | xargs echo "tgz "
+ cd dist;\
+ sha256sum *.tar.gz > SHA256SUMS.txt;\
+ gpg --sign --armor --detach-sig --output SHA256SUMS.txt.asc SHA256SUMS.txt
datefmt: datefmt.c
$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)