From ec941b4301f3c3139541419110b2d9cb913ad8a8 Mon Sep 17 00:00:00 2001 From: Ana Mativi Date: Tue, 15 Aug 2017 18:29:04 +0200 Subject: [PATCH] Try to clone first with SSH, using HTTPS in case of failure. README updated --- .../resources/scripts/dramSylva/dramSylva.sh | 10 +++++++++- README.md | 12 ++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/DRAMSys/simulator/resources/scripts/dramSylva/dramSylva.sh b/DRAMSys/simulator/resources/scripts/dramSylva/dramSylva.sh index be19cbb8..bfed34cb 100755 --- a/DRAMSys/simulator/resources/scripts/dramSylva/dramSylva.sh +++ b/DRAMSys/simulator/resources/scripts/dramSylva/dramSylva.sh @@ -75,7 +75,15 @@ python_interpreter="python3" function systole { local current_time=$(date "+%Y.%m.%d-%H.%M.%S") root_dir="dram.vp.system_$current_time" - `git clone --recursive https://$git_user@git.rhrk.uni-kl.de/EIT-Wehn/dram.vp.system.git $root_dir` + echo -e "Cloning. Please be patient...\n" + git clone --recursive git@git.rhrk.uni-kl.de:EIT-Wehn/dram.vp.system.git $root_dir --quiet + local success=$? + if [[ $success -eq 0 ]]; then + echo -e "Clone succeeded\n" + else + echo -e "Cloning failed. Trying with HTTPS...\n" + git clone --recursive https://$git_user@git.rhrk.uni-kl.de/EIT-Wehn/dram.vp.system.git $root_dir --quiet + fi cd $root_dir git checkout master git pull diff --git a/README.md b/README.md index 6025bcc0..71d3680d 100644 --- a/README.md +++ b/README.md @@ -852,6 +852,18 @@ $ cd build/simulator/ $ ./dramSys > output ``` +#### Log Collector Script +Users can profit of running multiple simulations automatically with dramSylva. + +Example on how to run the script: + +``` bash +$ cd DRAMSys/simulator/resources/scripts/dramSylva +$ chmod u+x dramSylva.sh +$ ./dramSylva +``` +More detailed information is available in [dramSylva folder](DRAMSys/simulator/resources/scripts/dramSylva). + #### DRAMsys Diagrams - **Payload Extension information**