]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
build-sys: add release helpers
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 16 Jan 2012 02:42:28 +0000 (00:42 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 16 Jan 2012 18:52:25 +0000 (16:52 -0200)
Makefile.am

index daf6144bbafc8973785de9124c9445f8e0a9443e..d28bd728593d02741b3af9c3ee01042ce872ea40 100644 (file)
@@ -154,3 +154,25 @@ test_test_invalidate_config_LDADD = libkmod/libkmod-private.la
 test_test_state_LDADD = libkmod/libkmod-private.la
 
 DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
+
+
+# ------------------------------------------------------------------------------
+# custom release helpers
+# ------------------------------------------------------------------------------
+
+git-release:
+       head -1 NEWS | grep -q "kmod $(VERSION)"
+       git commit -a -m "kmod $(VERSION)"
+       git tag -m "kmod $(VERSION)" -s v$(VERSION)
+       git gc --prune=0
+
+kmod-$(VERSION).tar.xz:
+       make distcheck
+
+kmod-$(VERSION).tar.sign:
+       xz -d -c kmod-$(VERSION).tar.xz | gpg --armor --detach-sign --output kmod-$(VERSION).tar.sign
+
+tar: kmod-$(VERSION).tar.xz kmod-$(VERSION).tar.sign
+
+tar-sync: kmod-$(VERSION).tar.xz kmod-$(VERSION).tar.sign
+       scp $^ packages.profusion.mobi:/var/www/packages/kmod/