From dadac7c1ec7d3a210339cdc04704208149faf7fd Mon Sep 17 00:00:00 2001 From: trotFunky Date: Mon, 30 Apr 2018 23:32:23 +0200 Subject: [PATCH] =?UTF-8?q?Script=20de=20d=C3=A9marrage=20de=20match=20com?= =?UTF-8?q?plet=20(Normalement)=20Modification=20de=20l'auto-config=20pour?= =?UTF-8?q?=20que=20ce=20soit=20pas=20trop=20chiant=20avec=20le=20match=20?= =?UTF-8?q?complet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Perso/MATCH_BEGIN.sh | 13 +++++++++++++ Perso/auto_config.sh | 4 +++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100755 Perso/MATCH_BEGIN.sh diff --git a/Perso/MATCH_BEGIN.sh b/Perso/MATCH_BEGIN.sh new file mode 100755 index 0000000..65e238f --- /dev/null +++ b/Perso/MATCH_BEGIN.sh @@ -0,0 +1,13 @@ +#! /bin/bash + +x-term -e "~/Documents/TechTheTown-HighLevel/config/auto_config.sh" + +couleur=$(grep $configFile -e "^COULEUR" | head -n 1 | cut -d "=" -f 2 | cut -d " " -f 2) + +if [ couleur = "orange" ]; then + xterm -e "python ~/Documents/TechTheTown-HighLevel/src/patternRecognition/setPatternPosition/SetPatternPositionOrange.py;exit" +else + xterm -e "python ~/Documents/TechTheTown-HighLevel/src/patternRecognition/setPatternPosition/SetPatternPositionGreen.py;exit" +fi + +xterm -e "cd ~/Documents/TechTheTown-HighLevel; java -jar techthetown-highlevel.jar;cd - " \ No newline at end of file diff --git a/Perso/auto_config.sh b/Perso/auto_config.sh index de2000c..37fe45e 100755 --- a/Perso/auto_config.sh +++ b/Perso/auto_config.sh @@ -138,4 +138,6 @@ if [ $changeMatchScript != 'n' ]; then fi echo "" -echo "May the Force be with Aspie" \ No newline at end of file +echo "May the Force be with Aspie" + +exit \ No newline at end of file