build: Add 'publish' make target.
authorDavid Thompson <dthompson2@worcester.edu>
Fri, 1 Jan 2016 21:14:44 +0000 (16:14 -0500)
committerDavid Thompson <dthompson2@worcester.edu>
Fri, 1 Jan 2016 21:14:44 +0000 (16:14 -0500)
No more remembering how I sign and upload things. ;)

Makefile.am

index 594cbf9..d273093 100644 (file)
@@ -79,3 +79,10 @@ EXTRA_DIST +=                                        \
   guix.scm                                     \
   examples/hello.scm                           \
   examples/hello.bmp
+
+publish: dist
+       gpg2 --sign --armor --yes guile-sdl2-$(VERSION).tar.gz && \
+        scp guile-sdl2-$(VERSION).tar.gz guile-sdl2-$(VERSION).tar.gz.asc \
+           blog@dthompson.us:/var/www/files/guile-sdl2/
+
+.PHONY: publish