This patch adds the proper logic to tag a release and build the release
tarball with the new automake system in mind.

The process ensures the following:
* autogen and configures the tree
* does a make dist and make distcheck to make sure the tree will rebuild
* adds only the files added by autogen.sh that are necessary for a
proper build to the tagged directory.  This list is taken from the
tarball created by the make dist step.
* creates a tarball from the tagged directory

I manually did a make distcheck on this tarball and it appears to work.

to try for yourself, execute

make trunk VERSION=0.95

Comments welcome

regards
-steve

Index: Makefile
===================================================================
--- Makefile	(revision 1888)
+++ Makefile	(working copy)
@@ -10,10 +10,15 @@
 endif
 	@echo Creating release for subrev $(REV) corosync version $(VERSION)
 	@echo remember to execute an svn commit if there are no failures
+	cd trunk ; ./autogen.sh ; ./configure --prefix=/usr --sysconfdir=/etc ==localtatedir=/var --libdir=/usr/lib
+	cd trunk ; make dist
+	cd trunk ; make distcheck
 	svn copy trunk tags/corosync-$(VERSION)
 	svn log trunk > tags/corosync-$(VERSION)/CHANGELOG
 	svn add tags/corosync-$(VERSION)/CHANGELOG
 	echo "#define RELEASE_VERSION \"subrev $(REV) corosync version $(VERSION)\"" > tags/corosync-$(VERSION)/version.h
+	cd tags ; tar -tf ../../trunk/corosync-$(VERSION).tar.gz | xargs svn add
+	exit
 	svn export tags/corosync-$(VERSION) corosync-$(VERSION)
 	tar -czvf corosync-$(VERSION).tar.gz corosync-$(VERSION)
 	ssh developer.osdl.org mkdir -p /home/www/public_html/dev/openais/downloads/corosync-$(VERSION)
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to