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
1 #!/bin/bash
2 INFILE="$1"
3 OUTFILE="$2"
4 SPFILE="replace_globals.cocci"
5 spatch -sp_file ${SPFILE} ${INFILE} 2>/dev/null | patch -o - | ./fixsrc.pl > ${OUTFILE}