A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
here was the leak!(cherry picked from commit 44db6a66549d1fc9831820cab2567e38716234f8)
[simgrid.git]
/
src
/
smpi
/
patch_source.sh
1
#!/bin/bash
2
INFILE="$1"
3
OUTFILE="$2"
4
SPFILE="replace_globals.cocci"
5
TMPFILE=`mktemp ${OUTFILE}.XXXX`
6
7
trap "rm -f ${TMPFILE}" EXIT
8
spatch -sp_file ${SPFILE} ${INFILE} -o ${TMPFILE} >/dev/null 2>/dev/null
9
./fixsrc.pl < ${TMPFILE} > ${OUTFILE}