[gnue] r9613 - trunk/gnue-common/utils

[email protected]
Newsgroups gmane.comp.cms.gnue.cvs
Message-ID <[email protected]>
Author: johannes
Date: 2007-05-23 10:01:44 -0500 (Wed, 23 May 2007)
New Revision: 9613

Added:
   trunk/gnue-common/utils/update-py2app.sh
Modified:
   trunk/gnue-common/utils/release
Log:
Update the setup.py for py2app on release time


Modified: trunk/gnue-common/utils/release
===================================================================
--- trunk/gnue-common/utils/release	2007-05-23 15:00:05 UTC (rev 9612)
+++ trunk/gnue-common/utils/release	2007-05-23 15:01:44 UTC (rev 9613)
@@ -39,6 +39,10 @@
 echo "$(date --iso-8601=seconds) Updating win32 package files"
 ../gnue-common/utils/update-iss.sh
 
+# Update the OS X Setup Files for OS X packaging
+echo "$(date --iso-8601=seconds) Updating OS X setup.py files"
+../gnue-common/utils/update-py2app.sh
+
 # Wait for firewall
 sleep 20
 

Added: trunk/gnue-common/utils/update-py2app.sh
===================================================================
--- trunk/gnue-common/utils/update-py2app.sh	2007-05-23 15:00:05 UTC (rev 9612)
+++ trunk/gnue-common/utils/update-py2app.sh	2007-05-23 15:01:44 UTC (rev 9613)
@@ -0,0 +1,17 @@
+#!/bin/sh
+# Update the py2app-setup.py file 
+#
+# run from within the package directory
+
+major=$(echo "import src; print src.version.major" | gcvs)
+version=$(echo "import src; print src.version.get_version()" | gcvs)
+minor=$(echo "import src; print src.version.minor" | gcvs)
+title=$(echo "import src; print src.TITLE" | gcvs)
+
+file="packaging/osx/setup.py"
+
+echo "V= $major.$minor , $version"
+
+sed -i "s/^app_name =.*$/app_name = '$title'/" $file
+sed -i "s/^app_vers =.*$/app_vers = '$version'/" $file
+sed -i "s/^short_vers =.*$/short_vers= '$major.$minor.0'/" $file


Property changes on: trunk/gnue-common/utils/update-py2app.sh
___________________________________________________________________
Name: svn:executable
   + *
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.