Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
No need to use a temporary file here.
[simgrid.git] / src / smpi / patch_source.sh
index 9b43196..6587641 100755 (executable)
@@ -2,6 +2,4 @@
 INFILE="$1"
 OUTFILE="$2"
 SPFILE="replace_globals.cocci"
-spatch -sp_file ${SPFILE} $1 -o $2.tmp >/dev/null 2>/dev/null
-./fixsrc.pl < $2.tmp > $2
-rm $2.tmp
+spatch -sp_file ${SPFILE} ${INFILE} 2>/dev/null | patch -o - | ./fixsrc.pl > ${OUTFILE}