[pLog-svn] r5759 - plog/branches/lifetype-1.2/bin-devel

reto at devel.lifetype.net reto at devel.lifetype.net
Mon Jul 30 14:00:58 EDT 2007


Author: reto
Date: 2007-07-30 14:00:58 -0400 (Mon, 30 Jul 2007)
New Revision: 5759

Modified:
   plog/branches/lifetype-1.2/bin-devel/build-svn.sh
Log:
Now the lifetype.xml file is automatically generated together with the distri packages, including the same svn revision number in the version tag. This ensures that even rebuilds of the same version (as seen occasionally) get recognised. the lifetype.xml file is generated to the same location as the packages and needs to be copied manually to lifetype.net/feeds/1.2/.



Modified: plog/branches/lifetype-1.2/bin-devel/build-svn.sh
===================================================================
--- plog/branches/lifetype-1.2/bin-devel/build-svn.sh	2007-07-30 16:39:39 UTC (rev 5758)
+++ plog/branches/lifetype-1.2/bin-devel/build-svn.sh	2007-07-30 18:00:58 UTC (rev 5759)
@@ -159,6 +159,32 @@
 message "Creating .tar.bz2 package..."
 tar cjvf $BUILDLABEL.tar.bz2 $WORKDIR > /dev/null
 
+
+# calculate branche and version
+LTBRANCHE=`echo $VERNAME | sed 's_lifetype-\(.*\..*\)\.\(.*\)_\1_'`
+LTVERSION=`echo $VERNAME | sed 's_lifetype-\(.*\)_\1_'`
+
+# create the lifetype core version feed xml file
+echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\" ?>
+<rss version=\"2.0\" xmlns:lt=\"http://www.lifetype.net\">
+<channel>
+<title>Lifetype version feed</title>
+<link>http://www.lifetype.net</link>
+<description>This feed contains the latest Lifetype version available</description>
+<item>
+<title>lifetype-${LTVERSION}_r${REV}</title>
+<link>http://downloads.sourceforge.net/lifetype/lifetype-${LTVERSION}.zip</link>
+<author>The Lifetype project</author>
+<description>Lifetype ${LTVERSION}</description>
+<lt:version>${LTVERSION}_r${REV}</lt:version>
+<lt:development>0</lt:development>
+<lt:branch>${LTBRANCHE}</lt:branch>
+<lt:relnotes>http://wiki.lifetype.net/index.php/Release_notes_Lifetype_${LTVERSION}</lt:relnotes>
+</item>
+</channel>
+</rss>" > lifetype.xml
+
+
 # clean up the temporary folders
 message "Cleaning up..."
 cleanup_exit -1



More information about the pLog-svn mailing list