git.haskell.org
/
ghc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
729c996
)
Use ${PYTHON} instead of relying on #!/usr/bin/env python
author
Matthias Kilian
<kili@outback.escape.de>
Fri, 16 Apr 2010 11:46:27 +0000
(11:46 +0000)
committer
Matthias Kilian
<kili@outback.escape.de>
Fri, 16 Apr 2010 11:46:27 +0000
(11:46 +0000)
testsuite/timeout/Makefile
patch
|
blob
|
history
diff --git
a/testsuite/timeout/Makefile
b/testsuite/timeout/Makefile
index
8c2d956
..
c9e9075
100644
(file)
--- a/
testsuite/timeout/Makefile
+++ b/
testsuite/timeout/Makefile
@@
-27,7
+27,9
@@
$(TIMEOUT_PROGRAM): timeout.py
rm -rf install-inplace
mkdir install-inplace
mkdir install-inplace/bin
- cp $< $@
+ cp $< $@.py
+ echo '#!/bin/sh' > $@
+ echo exec ${PYTHON} \$$0.py \"\$$@\" >> $@
chmod +x $@
else
# The python timeout program doesn't work on mingw, so we still use the