From: Augustin Degomme Date: Thu, 13 Dec 2012 09:30:05 +0000 (+0100) Subject: use temp file for fortran instead of fixed name, which conflicted with -j X-Git-Tag: v3_9_rc1~86^2~9 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/de522691ae839e2dec4107a426f1a0d68848d22c?hp=3904c967da0a8ca90dfc1bc602ede0045689e99f use temp file for fortran instead of fixed name, which conflicted with -j --- diff --git a/src/smpi/smpif90.in b/src/smpi/smpif90.in index 3724e84740..5487477809 100644 --- a/src/smpi/smpif90.in +++ b/src/smpi/smpif90.in @@ -8,7 +8,7 @@ CMAKE_LINKARGS="-L@libdir@" FFLAGS="-O2 -ff2c " LINKARGS="-lsimgrid -lsmpi -lm -lgfortran" main_name=main -TMPFILE=smpi_temp.f90 +TMPFILE=$(mktemp).f90 CMDLINE="" while [ -n "$1" ]; do ARG="$1" @@ -26,7 +26,7 @@ while [ -n "$1" ]; do fi #replace "program main_name by subroutine user\_main (and the end clause as well)" sed 's/[[:space:]]*program[[:space:]]*\([a-zA-Z0-9\-\_]*\)/subroutine user\_main /g' ${ARG} > ${TMPFILE} - SRCFILE="./${TMPFILE}" + SRCFILE="${TMPFILE}" CMDLINE="${CMDLINE} ${SRCFILE} " ;; *)