[pypy-svn] r17797 - pypy/dist/pypy/translator/goal

ericvrp at codespeak.net ericvrp at codespeak.net
Fri Sep 23 17:16:05 CEST 2005


Author: ericvrp
Date: Fri Sep 23 17:16:04 2005
New Revision: 17797

Modified:
   pypy/dist/pypy/translator/goal/bench-cronjob.py
Log:
work in progress


Modified: pypy/dist/pypy/translator/goal/bench-cronjob.py
==============================================================================
--- pypy/dist/pypy/translator/goal/bench-cronjob.py	(original)
+++ pypy/dist/pypy/translator/goal/bench-cronjob.py	Fri Sep 23 17:16:04 2005
@@ -13,20 +13,18 @@
     os.system('cvs -q up 2>&1')
     os.system('make tools-only 2>&1')
 
-def get_names():
+def compile(backend):
+    os.chdir(homedir + '/projects/pypy-dist/pypy/translator/goal')
+    os.system('python translate_pypy_new.py targetpypystandalone --backend=%(backend)s --pygame --batch -r 2>&1' % locals())
+
     os.chdir(homedir + '/projects/pypy-dist')
     try:
         revision = os.popen('svn info 2>&1').readlines()[3].split()[1]
     except:
         revision = 'unknown'
     basename = homedir + '/projects/pypy-dist/pypy/translator/goal/' + 'pypy-' + backend
-    realname = basename+'-'+revision()
-    return basename, realname
-    
-def compile(backend):
-    os.chdir(homedir + '/projects/pypy-dist/pypy/translator/goal')
-    os.system('python translate_pypy_new.py targetpypystandalone --backend=%(backend)s --pygame --batch -r 2>&1' % locals())
-    basename, realname = get_names()
+    realname = basename + '-' + revision
+
     os.open(realname, 'wb').write( open(basename).read() )
     os.chmod(realname, stat.S_IRWXU)
     os.unlink(basename)



More information about the Pypy-commit mailing list