[pypy-svn] r53525 - pypy/dist/pypy/translator
antocuni at codespeak.net
antocuni at codespeak.net
Mon Apr 7 15:08:15 CEST 2008
Author: antocuni
Date: Mon Apr 7 15:08:14 2008
New Revision: 53525
Modified:
pypy/dist/pypy/translator/driver.py
Log:
be more relaxed when checking uname
Modified: pypy/dist/pypy/translator/driver.py
==============================================================================
--- pypy/dist/pypy/translator/driver.py (original)
+++ pypy/dist/pypy/translator/driver.py Mon Apr 7 15:08:14 2008
@@ -666,7 +666,7 @@
f = file(newexename, 'w')
f.write("""#!/bin/bash
LEDIT=`type -p ledit`
-if [ `uname -s` = 'Cygwin' ]; then MONO=; else MONO=mono; fi
+if uname -s | grep -iq Cygwin ; then MONO=; else MONO=mono; fi
$LEDIT $MONO "$(dirname $0)/$(basename $0)-data/%s" "$@" # XXX doesn't work if it's placed in PATH
""" % main_exe_name)
f.close()
More information about the Pypy-commit
mailing list