datefmt

format unix timestamps over stdin
git clone git://jb55.com/datefmt
Log | Files | Refs | README | LICENSE

commit 68a109d829e3e220c7a1c6399612ca5450bf85a8
parent c9099743767d8c2e0c9a1d067fab9966b672641c
Author: William Casarin <jb55@jb55.com>
Date:   Sun,  5 Dec 2021 16:14:22 -0800

dist: update makefile

Diffstat:
M.gitignore | 2+-
MMakefile | 5++++-
Mdist/SHA256SUMS.txt | 2+-
Mdist/SHA256SUMS.txt.asc | 8++++----
4 files changed, 10 insertions(+), 7 deletions(-)

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,12 +13,15 @@ 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) install: datefmt docs - install -Dm644 doc/datefmt.1 $(PREFIX)/share/man/man1/gmnisrv.1 + install -Dm644 doc/datefmt.1 $(PREFIX)/share/man/man1/datefmt.1 install -Dm755 datefmt $(PREFIX)/bin/datefmt doc/datefmt.1: doc/datefmt.scd diff --git a/dist/SHA256SUMS.txt b/dist/SHA256SUMS.txt @@ -1 +1 @@ -464ad7406f7b92fdd6d648b0fbb52573647c4b95b404303b2622adfcbc30f02a datefmt-0.2.tar.gz +bb94facccf81c13b13b6225b1966f271061b020dde524bd7dffbd2bc5609c404 datefmt-0.2.tar.gz diff --git a/dist/SHA256SUMS.txt.asc b/dist/SHA256SUMS.txt.asc @@ -1,7 +1,7 @@ -----BEGIN PGP SIGNATURE----- -iHUEABYIAB0WIQSQ7rIUn2aJYi7/WV+hPC42Muo01wUCYa1VfgAKCRChPC42Muo0 -167hAP9/R1iJ3CMypRoi1egr3Cb0zECrF5AiJGysWlodMywzFwD8CILbvHuvzFFH -ZQRG8pTbGHExqAh6KHxG+k24rPo3XgY= -=QDQo +iHUEABYIAB0WIQSQ7rIUn2aJYi7/WV+hPC42Muo01wUCYa1snwAKCRChPC42Muo0 +151tAQCQxrMSETcAOl1eYzUcZqm4o/Zv+2AG94+fg+7oFmtqcwEA+nqoxkWOU3n5 +fO9aazYGqUgCZ9XRyPkGqjchgd94xgQ= +=g63K -----END PGP SIGNATURE-----