From 15bb449b149ac4b81687dc513b93b7b908290a5f Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 2 Jan 2014 15:23:30 +0100 Subject: add make release --- .gitignore | 2 ++ Makefile | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index 43e6e61..7dd7cb8 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ *.o nthash README.html +nthash-*.tar.xz +nthash-*.tar.xz.asc diff --git a/Makefile b/Makefile index e39b7d9..f4142d8 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,7 @@ CFLAGS += -O2 -Wall -Werror # Debian has the libs but no pkg-config file. Fall back to hard coded # "-lnettle" if pkg-config fails. CFLAGS += $(shell pkg-config --cflags --libs nettle 2>/dev/null || echo "-lnettle") +VERSION := 0.1.4 all: nthash README.html @@ -37,3 +38,7 @@ install-doc: README.html clean: $(RM) -f *.o *~ README.html nthash + +release: + git archive --format=tar.xz --prefix=nthash-$(VERSION)/ $(VERSION) > nthash-$(VERSION).tar.xz + gpg -ab nthash-$(VERSION).tar.xz -- cgit v1.2.3-54-g00ecf