1
0
mirror of https://github.com/Yubico/yubikey-ksm.git synced 2025-01-31 16:52:12 +01:00

Updated release target.

This commit is contained in:
Dain Nilsson 2013-04-10 09:49:12 +02:00
parent e9d3b4b525
commit a62d6543b9

View File

@ -38,7 +38,6 @@ DOCS = doc/DecryptionProtocol.wiki doc/DesignGoals.wiki \
doc/SyncMonitor.wiki
MANS = ykksm-checksum.1 ykksm-export.1 ykksm-gen-keys.1 \
ykksm-import.1
TMPDIR = /tmp/tmp.yubikey-ksm
all:
@echo "Try 'make install' or 'make symlink'."
@ -120,25 +119,13 @@ release: dist
fi
@head -1 NEWS | grep -q "Version $(VERSION) (released `date -I`)" || \
(echo 'error: You need to update date/version in 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
gpg --detach-sign --default-key $(KEYID) $(PACKAGE)-$(VERSION).tgz
gpg --verify $(PACKAGE)-$(VERSION).tgz.sig
git tag -u $(KEYID) -m "$(PACKAGE)-$(VERSION)" $(PACKAGE)-$(VERSION)
git push
git push --tags
mkdir -p $(TMPDIR)
mv $(PACKAGE)-$(VERSION).tgz $(TMPDIR)
mv $(PACKAGE)-$(VERSION).tgz.sig $(TMPDIR)
git checkout gh-pages
mv $(TMPDIR)/$(PACKAGE)-$(VERSION).tgz releases/
mv $(TMPDIR)/$(PACKAGE)-$(VERSION).tgz.sig releases/
git add releases/$(PACKAGE)-$(VERSION).tgz
git add releases/$(PACKAGE)-$(VERSION).tgz.sig
rmdir --ignore-fail-on-non-empty $(TMPDIR)
x=$$(ls -1v releases/*.tgz | awk -F\- '{print $$3}' | sed 's/.tgz//' | paste -sd ',' - | sed 's/,/, /g' | sed 's/\([0-9.]\{1,\}\)/"\1"/g');sed -i -e "2s/\[.*\]/[$$x]/" releases.html
git add releases.html
git commit -m "Added tarball for release $(VERSION)"
git push
git checkout master
echo "Release created and tagged, remember to git push && git push --tags"
$(YUBICO_GITHUB_REPO)/publish $(PROJECT) $(VERSION) $(PACKAGE)-$(VERSION).tgz*