datefmt

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

commit 2ac20397d23f51ef3653209c36fe2c543b5c3d49
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++++-
2 files changed, 5 insertions(+), 2 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