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

pedronis at codespeak.net pedronis at codespeak.net
Thu Jul 27 18:03:56 CEST 2006


Author: pedronis
Date: Thu Jul 27 18:03:46 2006
New Revision: 30651

Modified:
   pypy/dist/pypy/translator/goal/bench-cronjob.py
Log:
try to produce saner executable names



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	Thu Jul 27 18:03:46 2006
@@ -99,6 +99,14 @@
     else:
         translateoptions = ''
 
+    def normalize(f):
+        if f.startswith('_'):
+            f = f[1:]
+        if f.startswith('profopt'):
+            f = 'prof'
+        return f
+    features = '--'.join([normalize(f) for f in features.split('--')])
+
     os.chdir(homedir + '/projects/pypy-dist/pypy/translator/goal')
     run('/usr/local/bin/python translate.py --backend=%(backend)s%(featureoptions)s%(translateoptions)s --text --batch targetpypystandalone.py %(targetoptions)s 2>&1' % locals())
     run('mv %s/entry_point.ll %s/pypy.ll' % (tmpdir, tmpdir))



More information about the Pypy-commit mailing list