]> err.no Git - yubikey-personalization.old/commitdiff
Generalize release target.
authorSimon Josefsson <simon@josefsson.org>
Mon, 17 Aug 2009 16:29:56 +0000 (16:29 +0000)
committerSimon Josefsson <simon@josefsson.org>
Mon, 17 Aug 2009 16:29:56 +0000 (16:29 +0000)
Makefile.am

index a057897e112c17f34f6db020e91ae7d88f3a82f5..d1555f32a3b80376d6241dec2f90eeba7bf33cb0 100644 (file)
@@ -71,8 +71,6 @@ EXTRA_DIST = doc/MakeRelease.wiki doc/ReadMe.wiki doc/UsbhidIssue.wiki
 # Release
 
 PROJECT = yubikey-personalization
-USER = simon75j
-KEYID = B9156397
 
 ChangeLog:
        svn2cl
@@ -82,6 +80,13 @@ check-doc-dist:
        diff -ur Makefile.am tmp || (echo 'error: please update Makefile.am'; exit 1)
 
 release:
+       @if test -z "$(USER)" || test -z "$(KEYID)"; then \
+               echo "Try this instead:"; \
+               echo "  make release USER=[GOOGLEUSERNAME] KEYID=[PGPKEYID]"; \
+               echo "For example:"; \
+               echo "  make release USER=simon75j KEYID=B9156397"; \
+               exit 1; \
+       fi
        rm -f ChangeLog
        make check-doc-dist ChangeLog distcheck
        gpg --detach-sign --default-key $(KEYID) $(PACKAGE)-$(VERSION).tar.gz