! man --warnings ./*.1 2>&1 | grep ': warning'
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=simonyubico@gmail.com KEYID=2117364A"; \
+ echo " make release KEYID=2117364A"; \
exit 1; \
fi
@head -3 $(srcdir)/NEWS | grep -q "Version $(VERSION) .released `date -I`" || \
(echo 'error: You need to update date/version in $(srcdir)/NEWS, see doc/MakeRelease.wiki.'; 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 $(srcdir)/ChangeLog
make check-doc-dist ChangeLog distcheck
gpg --detach-sign --default-key $(KEYID) $(PACKAGE)-$(VERSION).tar.gz
cd $(srcdir) && git push
cd $(srcdir) && git tag -u $(KEYID)! -m $(VERSION) v$(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 \
- -l OpSys-All
- googlecode_upload.py -s "$(PACKAGE) $(VERSION)" \
- -p $(PROJECT) -u $(USER) $(PACKAGE)-$(VERSION).tar.gz \
- -l OpSys-All,Type-Source
+ $(YUBICO_GITHUB_REPO)/publish $(PROJECT) $(VERSION) $(PACKAGE)-$(VERSION).tar.gz*
.PHONY: usage
usage:
- @if test -z "$(USER)" || test -z "$(VERSION)" || test -z "$(PGPKEYID)"; then \
+ @if test test -z "$(VERSION)" || test -z "$(PGPKEYID)"; then \
echo "Try this instead:"; \
- echo " make USER=[GOOGLEUSERNAME] PGPKEYID=[PGPKEYID] VERSION=[VERSION]"; \
+ echo " make PGPKEYID=[PGPKEYID] VERSION=[VERSION]"; \
echo "For example:"; \
- echo " make USER=simonyubico@gmail.com PGPKEYID=2117364A VERSION=1.6.0"; \
+ echo " make PGPKEYID=2117364A VERSION=1.6.0"; \
exit 1; \
fi
zip -r ../../ykpers-$(VERSION)-mac.zip *
upload-ykpers4mac:
+ @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
gpg --detach-sign --default-key $(PGPKEYID) \
$(PACKAGE)-$(VERSION)-mac.zip
gpg --verify $(PACKAGE)-$(VERSION)-mac.zip.sig
- googlecode_upload.py \
- -s "OpenPGP signature for $(PACKAGE)-$(VERSION)-mac.zip." \
- -p $(PROJECT) -u $(USER) $(PACKAGE)-$(VERSION)-mac.zip.sig \
- -l OpSys-OSX
- googlecode_upload.py \
- -s "OS-X binaries of $(PACKAGE) $(VERSION)" \
- -p $(PROJECT) -u $(USER) $(PACKAGE)-$(VERSION)-mac.zip \
- -l OpSys-OSX,Type-Executable
+ $(YUBICO_GITHUB_REPO)/publish $(PROJECT) $(VERSION) $(PACKAGE)-$(VERSION)-mac.zip*
.PHONY: usage
usage:
- @if test -z "$(USER)" || test -z "$(VERSION)" || test -z "$(PGPKEYID)"; then \
+ @if test test -z "$(VERSION)" || test -z "$(PGPKEYID)"; then \
echo "Try this instead:"; \
- echo " make USER=[GOOGLEUSERNAME] PGPKEYID=[PGPKEYID] VERSION=[VERSION]"; \
+ echo " make PGPKEYID=[PGPKEYID] VERSION=[VERSION]"; \
echo "For example:"; \
- echo " make USER=simonyubico@gmail.com PGPKEYID=2117364A VERSION=1.6.0"; \
+ echo " make PGPKEYID=2117364A VERSION=1.6.0"; \
exit 1; \
fi
$(MAKE) -f ykpers4win.mk ykpers4win ARCH=32 HOST=i586-mingw32msvc CHECK=check CC=i586-mingw32msvc-gcc CFLAGS=-I/usr/i586-mingw32msvc/include/ddk/
upload-ykpers4win:
+ @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
gpg --detach-sign --default-key $(PGPKEYID) \
$(PACKAGE)-$(VERSION)-win$(BITS).zip
gpg --verify $(PACKAGE)-$(VERSION)-win$(BITS).zip.sig
- googlecode_upload.py \
- -s "OpenPGP signature for $(PACKAGE)-$(VERSION)-win$(BITS).zip." \
- -p $(PROJECT) -u $(USER) $(PACKAGE)-$(VERSION)-win$(BITS).zip.sig \
- -l OpSys-Windows
- googlecode_upload.py \
- -s "Windows $(BITS)-bit binaries of $(PACKAGE) $(VERSION)" \
- -p $(PROJECT) -u $(USER) $(PACKAGE)-$(VERSION)-win$(BITS).zip \
- -l OpSys-Windows,Type-Executable
+ $(YUBICO_GITHUB_REPO)/publish $(PROJECT) $(VERSION) $(PACKAGE)-$(VERSION)-mac.zip*
upload-ykpers4win32:
$(MAKE) -f ykpers4win.mk upload-ykpers4win BITS=32