[Zope3-checkins] SVN: Zope3/branches/3.3/releases/Zope-test.py
Added a version option. Now this script can be used to create and
Jim Fulton
jim at zope.com
Fri Aug 18 15:18:00 EDT 2006
Log message for revision 69668:
Added a version option. Now this script can be used to create and
test the final tar ball.
Changed:
U Zope3/branches/3.3/releases/Zope-test.py
-=-
Modified: Zope3/branches/3.3/releases/Zope-test.py
===================================================================
--- Zope3/branches/3.3/releases/Zope-test.py 2006-08-18 18:20:19 UTC (rev 69667)
+++ Zope3/branches/3.3/releases/Zope-test.py 2006-08-18 19:18:00 UTC (rev 69668)
@@ -12,12 +12,22 @@
print 'CHDIR', d
os.chdir(d)
+if len(sys.argv) > 1:
+ [version] = sys.argv[1:]
+else:
+ version = '0.0.0'
+
errors = []
-do('rm -rf Zope-0.0.0*')
-do('../../zpkgtools/bin/zpkg -caCZope.cfg Zope')
-do('tar xzf Zope-0.0.0.tgz')
-chdir('Zope-0.0.0')
+do('rm -rf Zope-%s*' % version)
+if version == '0.0.0':
+ do('../../zpkgtools/bin/zpkg -caCZope.cfg Zope')
+else:
+ do('../../zpkgtools/bin/zpkg -caCZope.cfg -v %s -r %s Zope'
+ % (version, version))
+
+do('tar xzf Zope-%s.tgz' % version)
+chdir('Zope-%s' % version)
do('./configure --prefix `pwd`/z --with-python=%s' % sys.executable)
do('make install')
chdir('z')
More information about the Zope3-Checkins
mailing list