diff options
author | David Bremner <bremner@debian.org> | 2011-07-04 08:39:04 -0300 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2011-07-17 10:59:41 -0300 |
commit | 466f3b57aa9650cbed47152241813e212c965f94 (patch) | |
tree | af9ced88b189ebf302be2f82be9ba225cbd13a7d /Makefile.local | |
parent | 9b0dfd11c5d4af6dc4cd2b79f33e0d6c460d414e (diff) |
build-system: guard parts irrevokable parts of release target with REALLY_UPLOAD
This supports both testing and use by non-upload privileged
users. Along with previous commits in the series, this lets one do a
dry run of the release process and created a tarball, signature file,
and release announcement to inspect before uploading.
Diffstat (limited to 'Makefile.local')
-rw-r--r-- | Makefile.local | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile.local b/Makefile.local index 7fc68163..2acc9d3a 100644 --- a/Makefile.local +++ b/Makefile.local @@ -100,12 +100,14 @@ release: verify-source-tree-and-version $(MAKE) VERSION=$(VERSION) $(GPG_FILE) ln -sf $(TAR_FILE) $(DEB_TAR_FILE) pristine-tar commit $(DEB_TAR_FILE) $(VERSION) - scp $(TAR_FILE) $(SHA1_FILE) $(GPG_FILE) $(RELEASE_HOST):$(RELEASE_DIR) - ssh $(RELEASE_HOST) "rm -f $(RELEASE_DIR)/LATEST-$(PACKAGE)-[0-9]* && ln -s $(TAR_FILE) $(RELEASE_DIR)/LATEST-$(PACKAGE)-$(VERSION)" mkdir -p releases mv $(TAR_FILE) $(SHA1_FILE) $(GPG_FILE) releases - git push origin $(VERSION) $(MAKE) VERSION=$(VERSION) release-message > $(PACKAGE)-$(VERSION).announce +ifeq ($(REALLY_UPLOAD),yes) + git push origin $(VERSION) + cd releases && scp $(TAR_FILE) $(SHA1_FILE) $(GPG_FILE) $(RELEASE_HOST):$(RELEASE_DIR) + ssh $(RELEASE_HOST) "rm -f $(RELEASE_DIR)/LATEST-$(PACKAGE)-[0-9]* ; ln -s $(TAR_FILE) $(RELEASE_DIR)/LATEST-$(PACKAGE)-$(VERSION)" +endif @echo "Please send a release announcement using $(PACKAGE)-$(VERSION).announce as a template." .PHONY: release-message |