[cairo-commit] libpixman ChangeLog, 1.28, 1.29 Makefile.am, 1.3, 1.4 RELEASING, 1.4, 1.5

Carl Worth commit at pdx.freedesktop.org
Thu Oct 28 08:48:09 PDT 2004


Committed by: cworth

Update of /cvs/cairo/libpixman
In directory gabe:/tmp/cvs-serv19698

Modified Files:
	ChangeLog Makefile.am RELEASING 
Log Message:

        * 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.


Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/libpixman/ChangeLog,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- ChangeLog	27 Oct 2004 17:53:44 -0000	1.28
+++ ChangeLog	28 Oct 2004 15:48:07 -0000	1.29
@@ -1,3 +1,10 @@
+2004-10-28  Carl Worth  <cworth at 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 at cworth.org>
 
 	* RELEASING: Put the tag command back which was accidentally

Index: Makefile.am
===================================================================
RCS file: /cvs/cairo/libpixman/Makefile.am,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- Makefile.am	27 Oct 2004 16:37:34 -0000	1.3
+++ Makefile.am	28 Oct 2004 15:48:07 -0000	1.4
@@ -10,18 +10,19 @@
 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 at cairographics.org
 
+tar_file = $(PACKAGE)-$(VERSION).tar.gz
+md5_file = $(tar_file).md5
+
 $(md5_file): $(tar_file)
 	md5sum $^ > $@
 
@@ -30,10 +31,19 @@
 
 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 @@
 	@cat releases/$(md5_file)
 	@echo ""
 	@echo "Also, please include the new entries from the NEWS file."
-
-
-

Index: RELEASING
===================================================================
RCS file: /cvs/cairo/libpixman/RELEASING,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- RELEASING	27 Oct 2004 17:53:44 -0000	1.4
+++ RELEASING	28 Oct 2004 15:48:07 -0000	1.5
@@ -52,16 +52,18 @@
 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 at 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".




More information about the cairo-commit mailing list