A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix conflict - Adrien
[simgrid.git]
/
tools
/
stack-cleaner
/
as
diff --git
a/tools/stack-cleaner/as
b/tools/stack-cleaner/as
index
dcdb491
..
46446cb
100755
(executable)
--- a/
tools/stack-cleaner/as
+++ b/
tools/stack-cleaner/as
@@
-1,4
+1,4
@@
-#!/usr/bin/ruby
+#!/usr/bin/
env
ruby
# Wrapper around the real `as` which adds filtering capabilities.
require "tempfile"
# Wrapper around the real `as` which adds filtering capabilities.
require "tempfile"
@@
-35,7
+35,9
@@
def wrapped_as(argv)
# Generate temp file
tempfile = Tempfile.new("as-filter")
# Generate temp file
tempfile = Tempfile.new("as-filter")
- unless system(File.dirname($0) + "/clean-stack-filter", 0 => input, 1 => tempfile)
+ tempfile.close
+ script = File.dirname($0) + "/clean-stack-filter"
+ unless system([script, script], 0 => input, 1 => tempfile.path)
status=$?.exitstatus
FileUtils.rm tempfile
exit status
status=$?.exitstatus
FileUtils.rm tempfile
exit status