summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1059868)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6371
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
+ "-keep-temps")
+ KEEP="true"
+ shift 1
+ ;;
+
"-help" | "--help" | "-h")
echo "usage:"
"-help" | "--help" | "-h")
echo "usage:"
- echo "$0 [-quiet] [-np <numprocs>] -platform <xmldesc> -hostfile <hostfile> [-map] program [program-options]"
+ echo "$0 [-quiet] [-keep-temps] [-np <numprocs>] -platform <xmldesc> -hostfile <hostfile> [-map] program [program-options]"
echo "or (deprecated usage):"
echo "or (deprecated usage):"
- echo "$0 [-quiet] [-np <numprocs>] [-bandwidth <bytes/sec>] [-latency <secs>] program [program-options]"
+ echo "$0 [-quiet] [-keep-temps] [-np <numprocs>] [-bandwidth <bytes/sec>] [-latency <secs>] program [program-options]"
+
+ "--cfg="*)
+ SIMOPTS="$SIMOPTS $1"
+ shift 1
+ ;;
##-------------------------------- end DEFAULT APPLICATION --------------------------------------
if [ -z "${QUIET}" ] ; then
##-------------------------------- end DEFAULT APPLICATION --------------------------------------
if [ -z "${QUIET}" ] ; then
- echo ${EXEC} ${PLATFORMTMP} ${APPLICATIONTMP}
+ echo ${EXEC} ${SIMOPTS} ${PLATFORMTMP} ${APPLICATIONTMP}
-${EXEC} ${PLATFORMTMP} ${APPLICATIONTMP}
+${EXEC} ${SIMOPTS} ${PLATFORMTMP} ${APPLICATIONTMP}
-if [ -z "${QUIET}" ] ; then
- echo "[$0] cleaning up temp files"
-fi
-if [ -z "${PLATFORM}" ]; then
+if [ "x$?" == "x0" ] && [ -n ${KEEP} ] ; then
+ if [ -z "${QUIET}" ] ; then
+ echo "[$0] cleaning up temp files"
+ fi
+ if [ -z "${PLATFORM}" ]; then
-fi
-rm ${APPLICATIONTMP}
+ fi
+ rm ${APPLICATIONTMP}
+fi
\ No newline at end of file