diff --git a/make/release.mk b/make/release.mk index 1e6bd890d..f8cf5b249 100644 --- a/make/release.mk +++ b/make/release.mk @@ -1,73 +1,73 @@ # to build official release tarballs, handle tagging and publish. # signing key gpgsignkey=0x6CE95CA7 project=resource-agents all: checks setup tag tarballs sha256 sign checks: ifeq (,$(version)) @echo ERROR: need to define version= @exit 1 endif @if [ ! -d .git ]; then \ echo This script needs to be executed from top level cluster git tree; \ exit 1; \ fi setup: checks ./autogen.sh ./configure make maintainer-clean tag: setup ./tag-$(version) tag-$(version): ifeq (,$(release)) @echo Building test release $(version), no tagging else git tag -a -m "v$(version) release" v$(version) HEAD @touch $@ endif tarballs: tag ./autogen.sh ./configure - DISTCHECK_CONFIGURE_FLAGS="--with-systemdsystemunitdir=no --with-systemdtmpfilesdir=no" make distcheck + make distcheck sha256: tarballs $(project)-$(version).sha256 $(project)-$(version).sha256: ifeq (,$(release)) @echo Building test release $(version), no sha256 else sha256sum $(project)-$(version)*tar* | sort -k2 > $@ endif sign: sha256 $(project)-$(version).sha256.asc $(project)-$(version).sha256.asc: $(project)-$(version).sha256 ifeq (,$(release)) @echo Building test release $(version), no sign else gpg --default-key $(gpgsignkey) \ --detach-sign \ --armor \ $< endif publish: ifeq (,$(release)) @echo Building test release $(version), no publishing! else git push --tags origin scp $(project)-$(version).* \ fedorahosted.org:$(project) @echo Hey you!.. yeah you looking somewhere else! @echo remember to update the wiki and send the email to cluster-devel and linux-cluster endif clean: rm -rf $(project)*.tar.* $(project)*.sha* tag-*