From 6a1727bb38715151bd76246e795ac8c2d0296fad Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Tue, 7 Jun 2011 00:43:14 +0200 Subject: [PATCH] Fix release target. --- Makefile.am | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/Makefile.am b/Makefile.am index 6ed0320..99154c1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,5 @@ # Written by Simon Josefsson . -# Copyright (c) 2006, 2007, 2008, 2009, 2010 Yubico AB +# Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011 Yubico AB # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -84,10 +84,17 @@ check-doc-dist: (echo 'error: README and doc/ReadMe.asciidoc does not match!'; exit 1) PROJECT = yubico-pam -GOOGLEACCOUNT ?= $(PACKAGE_BUGREPORT) -KEYID ?= B9156397 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=simon@yubico.com KEYID=2117364A"; \ + exit 1; \ + fi + @head -3 $(srcdir)/NEWS | grep -q "Version $(VERSION) .released `date -I`" || \ + (echo 'error: Update date/version in $(srcdir)/NEWS.'; exit 1) rm -f ChangeLog make check-doc-dist ChangeLog distcheck gpg --detach-sign --default-key $(KEYID) $(PACKAGE)-$(VERSION).tar.gz @@ -98,6 +105,6 @@ release: mkdir -p ../releases/$(PACKAGE)/ && \ cp -v $(PACKAGE)-$(VERSION).tar.gz* ../releases/$(PACKAGE)/ googlecode_upload.py -s "OpenPGP signature for $(PACKAGE) $(VERSION)." \ - -p $(PROJECT) -u $(GOOGLEACCOUNT) $(PACKAGE)-$(VERSION).tar.gz.sig + -p $(PROJECT) -u $(USER) $(PACKAGE)-$(VERSION).tar.gz.sig googlecode_upload.py -s "$(PACKAGE) $(VERSION)" \ - -p $(PROJECT) -u $(GOOGLEACCOUNT) $(PACKAGE)-$(VERSION).tar.gz + -p $(PROJECT) -u $(USER) $(PACKAGE)-$(VERSION).tar.gz