From 7e4b523389ec20cf443bcf2474c580487d9ccf53 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sun, 1 Nov 2015 00:25:48 +0100 Subject: [PATCH] make it easier to ignore SMPI temp files, and do so in the .gitignore --- .gitignore | 2 +- src/smpi/smpirun.in | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index e485f5677d..47d4275268 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,7 @@ *.class \#* .attach_pid* +smpitmp-* ### cmake CTestCustom.cmake @@ -603,7 +604,6 @@ teshsuite/smpi/mpich3-test/coll/scatter2 teshsuite/smpi/mpich3-test/coll/scatter3 teshsuite/smpi/mpich3-test/coll/scattern teshsuite/smpi/mpich3-test/coll/scatterv -teshsuite/smpi/mpich3-test/coll/tmp* teshsuite/smpi/mpich3-test/coll/uoplong teshsuite/smpi/mpich3-test/comm/cmfree teshsuite/smpi/mpich3-test/comm/cmsplit diff --git a/src/smpi/smpirun.in b/src/smpi/smpirun.in index 87b0750966..fb1754a32b 100755 --- a/src/smpi/smpirun.in +++ b/src/smpi/smpirun.in @@ -291,7 +291,7 @@ fi if [ -z "${HOSTFILE}" ] ; then HOSTFILETMP=1 - HOSTFILE="$(mktemp tmphostXXXXXX)" + HOSTFILE="$(mktemp smpitmp-hostfXXXXXX)" perl -ne 'print "$1\n" if /.*.*/' ${PLATFORM} > ${HOSTFILE} perl -ne 'if (/.* ${UNROLLEDHOSTFILE} if [ ${HOSTFILETMP} = 1 ] ; then rm ${HOSTFILE} @@ -343,7 +343,7 @@ fi ##-------------------------------- DEFAULT or SPECIFIED PLATFORM -------------------------------------- if [ -z "${PLATFORM}" ]; then - PLATFORMTMP="$(mktemp tmpXXXXXX)" + PLATFORMTMP="$(mktemp smpitmp-platfXXXXXX)" cat > ${PLATFORMTMP} < @@ -385,7 +385,7 @@ fi ##-------------------------------- end DEFAULT or SPECIFIED PLATFORM -------------------------------------- ##-------------------------------- DEFAULT APPLICATION -------------------------------------- -APPLICATIONTMP="$(mktemp tmpXXXXXX)" +APPLICATIONTMP="$(mktemp smpitmp-appXXXXXX)" #APPLICATIONTMP="app.xml" -- 2.20.1