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:
parent
e9d3b4b525
commit
a62d6543b9
27
Makefile
27
Makefile
@ -38,7 +38,6 @@ DOCS = doc/DecryptionProtocol.wiki doc/DesignGoals.wiki \
|
|||||||
doc/SyncMonitor.wiki
|
doc/SyncMonitor.wiki
|
||||||
MANS = ykksm-checksum.1 ykksm-export.1 ykksm-gen-keys.1 \
|
MANS = ykksm-checksum.1 ykksm-export.1 ykksm-gen-keys.1 \
|
||||||
ykksm-import.1
|
ykksm-import.1
|
||||||
TMPDIR = /tmp/tmp.yubikey-ksm
|
|
||||||
|
|
||||||
all:
|
all:
|
||||||
@echo "Try 'make install' or 'make symlink'."
|
@echo "Try 'make install' or 'make symlink'."
|
||||||
@ -120,25 +119,13 @@ release: dist
|
|||||||
fi
|
fi
|
||||||
@head -1 NEWS | grep -q "Version $(VERSION) (released `date -I`)" || \
|
@head -1 NEWS | grep -q "Version $(VERSION) (released `date -I`)" || \
|
||||||
(echo 'error: You need to update date/version in NEWS'; exit 1)
|
(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 --detach-sign --default-key $(KEYID) $(PACKAGE)-$(VERSION).tgz
|
||||||
gpg --verify $(PACKAGE)-$(VERSION).tgz.sig
|
gpg --verify $(PACKAGE)-$(VERSION).tgz.sig
|
||||||
|
|
||||||
git tag -u $(KEYID) -m "$(PACKAGE)-$(VERSION)" $(PACKAGE)-$(VERSION)
|
git tag -u $(KEYID) -m "$(PACKAGE)-$(VERSION)" $(PACKAGE)-$(VERSION)
|
||||||
git push
|
echo "Release created and tagged, remember to git push && git push --tags"
|
||||||
git push --tags
|
$(YUBICO_GITHUB_REPO)/publish $(PROJECT) $(VERSION) $(PACKAGE)-$(VERSION).tgz*
|
||||||
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
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user