Abort release-publish if there's already a published tar file with the current version. (release-publish): Add code to update the LATEST-package-version file.

This commit is contained in:
Carl Worth 2004-10-28 08:48:07 +00:00
parent 2473e782ca
commit 0340265ce4
3 changed files with 28 additions and 12 deletions

View file

@ -1,3 +1,10 @@
2004-10-28 Carl Worth <cworth@cworth.org>
* Makefile.am (release-verify-newer): Abort release-publish if
there's already a published tar file with the current version.
(release-publish): Add code to update the LATEST-package-version
file.
2004-10-27 Carl Worth <cworth@cworth.org>
* RELEASING: Put the tag command back which was accidentally

View file

@ -10,18 +10,19 @@ EXTRA_DIST = \
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libpixman.pc
tar_file = $(PACKAGE)-$(VERSION).tar.gz
md5_file = $(tar_file).md5
# Some custom targets to make it easier to release things.
# Use either:
# make release-check
# or make release-publish
RELEASE_UPLOAD_DIR = cairographics.org:/home/www/cairo/snapshots
RELEASE_UPLOAD_HOST = cairographics.org
RELEASE_UPLOAD_DIR = /home/www/cairo/snapshots
RELEASE_URL_BASE = http://cairographics.org/snapshots
RELEASE_ANNOUNCE_LIST = cairo-announce@cairographics.org
tar_file = $(PACKAGE)-$(VERSION).tar.gz
md5_file = $(tar_file).md5
$(md5_file): $(tar_file)
md5sum $^ > $@
@ -30,10 +31,19 @@ release-remove-old:
release-check: release-remove-old distcheck $(md5_file)
release-publish: release-check
release-verify-newer:
@echo -n "Checking that no $(VERSION) release already exists..."
@ssh $(RELEASE_UPLOAD_HOST) test ! -e $(RELEASE_UPLOAD_DIR)/$(tar_file) \
|| (echo "Ouch." && echo "Found: $(RELEASE_UPLOAD_HOST):$(RELEASE_UPLOAD_DIR)/$(tar_file)" \
&& echo "The version in configure.in must be incremented before a new release." \
&& false)
@echo "Good."
release-publish: release-verify-newer release-check
mkdir -p releases
scp $(tar_file) $(md5_file) $(RELEASE_UPLOAD_DIR)
scp $(tar_file) $(md5_file) $(RELEASE_UPLOAD_HOST):$(RELEASE_UPLOAD_DIR)
mv $(tar_file) $(md5_file) releases
ssh $(RELEASE_UPLOAD_HOST) "rm -f $(RELEASE_UPLOAD_DIR)/LATEST-$(PACKAGE)-[0-9]* && touch $(RELEASE_UPLOAD_DIR)/LATEST-$(PACKAGE)-$(VERSION)"
@echo ""
@echo "Please send an announcement to $(RELEASE_ANNOUNCE_LIST)"
@echo "including the following:"
@ -48,6 +58,3 @@ release-publish: release-check
@cat releases/$(md5_file)
@echo ""
@echo "Also, please include the new entries from the NEWS file."

View file

@ -52,16 +52,18 @@ fixes are committed. Here are the steps to follow:
6) Run "make release-publish" which will perform the following steps
for you:
* Check that no release exists with the current version
* Verify that make distcheck completes successfully
* Generate the final tar file with the correct version number
* Generate the final tar file
* Generate an md5sum file
* scp both files to cairographics.org:/home/www/cairo/snapshots
* Create a LATEST-package-version file (after deleting any old one)
* Place local copies of both files in the releases directory
* Provide some text for the release announcement
* Provide some text for the release announcement (see below).
7) Tag the entire source tree with a tag of the form SNAPSHOT_X_Y_Z:
cvs tag SNAPSHOT_X_Y_Z
8) Send a message to cairo-announce@cairographics.org to announce the
new snapshot using the text provided by the previous step.
new snapshot using the text provided from "make release-publis".