Annotation of badi/public_scripts/parallelstarter/matsim/parallelstarter.prepare_process_start, revision 1.1

1.1     ! adi         1: # prepare for matsim benchmark test
        !             2: 
        !             3: # prepare environment
        !             4: if [ -z "$RUNDIR_BASENAME" ]; then
        !             5:        TEMPLATE_DIRNAME="matsim"
        !             6: else
        !             7:        TEMPLATE_DIRNAME="$RUNDIR_BASENAME"
        !             8: fi
        !             9: STARTMSG="Starting matsim with arguments $RUN_ARGS"
        !            10: id="$(($RUN_COUNT+1+$RUN_COUNT_OFFSET))"
        !            11: mydir="$TEMPLATE_DIRNAME""$RUN_DIR_PREFIX""_run-""$id"
        !            12: 
        !            13: # move old dirs out of the way
        !            14: if [ -e "$mydir/output" ]; then
        !            15:        $SPEAK && echo "Matsim directory exists: $mydir/output. Renaming directory."
        !            16:        mv "$mydir/$ARGS_LOG" "$mydir/output" 2>&1 > /dev/null
        !            17:        mv "$mydir/output" "$mydir/output.$(basename `mktemp -u`)"
        !            18: elif [ ! -e "$mydir" ]; then
        !            19:        # create process home
        !            20:        mkdir "$mydir"
        !            21: 
        !            22:        # create links
        !            23:        ln -s "../$TEMPLATE_DIRNAME/Benchmark.jar" "$mydir/Benchmark.jar"
        !            24:        ln -s "../$TEMPLATE_DIRNAME/MATSim_r6528.jar" "$mydir/MATSim_r6528.jar"
        !            25:        ln -s "../$TEMPLATE_DIRNAME/libs" "$mydir/libs"
        !            26: 
        !            27:        # config file variation -> use matsim's command line switches
        !            28:        ln -s "../$TEMPLATE_DIRNAME/input" "$mydir/input"
        !            29: fi
        !            30: 
        !            31: cd "$mydir"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>