[Checkins] SVN: zc-zookeeper-static/trunk/get_source_files.py Get sources from tar ball to avoid accidentilly picking up build

Jim Fulton jim at zope.com
Sun Nov 27 22:07:25 UTC 2011


Log message for revision 123509:
  Get sources from tar ball to avoid accidentilly picking up build
  artifacts.
  

Changed:
  U   zc-zookeeper-static/trunk/get_source_files.py

-=-
Modified: zc-zookeeper-static/trunk/get_source_files.py
===================================================================
--- zc-zookeeper-static/trunk/get_source_files.py	2011-11-27 21:57:15 UTC (rev 123508)
+++ zc-zookeeper-static/trunk/get_source_files.py	2011-11-27 22:07:22 UTC (rev 123509)
@@ -3,8 +3,15 @@
 import sys
 
 def main():
-    [srcdir] = sys.argv[1:]
     here = os.getcwd()
+
+    [tarball] = sys.argv[1:]
+    os.system('rm -rf zookeeper-sources')
+    os.mkdir('zookeeper-sources')
+    os.chdir('zookeeper-sources')
+    os.system('tar xzf ' + tarball)
+    [srcdir] = os.listdir('.')
+
     if os.path.exists(os.path.join(here, 'src')):
         shutil.rmtree(os.path.join(here, 'src'))
     os.mkdir(os.path.join(here, 'src'))



More information about the checkins mailing list