1
0
mirror of https://github.com/Yubico/yubico-pam.git synced 2025-01-31 16:52:19 +01:00

fixup release target for move to github

This commit is contained in:
Klas Lindfors 2013-09-19 09:34:43 +02:00
parent be4a23a0cd
commit 96cf010af7

View File

@ -86,15 +86,20 @@ check-doc-dist:
PROJECT = yubico-pam
release:
@if test -z "$(USER)" || test -z "$(KEYID)"; then \
@if test -z "$(KEYID)"; then \
echo "Try this instead:"; \
echo " make release USER=[GOOGLEUSERNAME] KEYID=[PGPKEYID]"; \
echo " make release KEYID=[PGPKEYID]"; \
echo "For example:"; \
echo " make release USER=simon@yubico.com KEYID=2117364A"; \
echo " make release 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)
@if test ! -d "$(YUBICO_GITHUB_REPO)"; then \
echo "yubico.github.com repo not found!"; \
echo "Make sure that YUBICO_GITHUB_REPO is set"; \
exit 1; \
fi
rm -f ChangeLog
make check-doc-dist ChangeLog distcheck
gpg --detach-sign --default-key $(KEYID) $(PACKAGE)-$(VERSION).tar.gz
@ -102,9 +107,4 @@ release:
cd $(srcdir) && git push
cd $(srcdir) && git tag -u $(KEYID)! -m $(VERSION) $(VERSION)
cd $(srcdir) && git push --tags
mkdir -p ../releases/$(PACKAGE)/ && \
cp -v $(PACKAGE)-$(VERSION).tar.gz* ../releases/$(PACKAGE)/
googlecode_upload.py -s "OpenPGP signature for $(PACKAGE) $(VERSION)." \
-p $(PROJECT) -u $(USER) $(PACKAGE)-$(VERSION).tar.gz.sig
googlecode_upload.py -s "$(PACKAGE) $(VERSION)" \
-p $(PROJECT) -u $(USER) $(PACKAGE)-$(VERSION).tar.gz
$(YUBICO_GITHUB_REPO)/publish $(PROJECT) $(VERSION) $(PACKAGE)-$(VERSION).tar.gz*