diff --git a/game-add b/game-add index 6b7bd0b..29b4038 100755 --- a/game-add +++ b/game-add @@ -2,11 +2,11 @@ # Copyright 2014 Vladimir Ivanov # Distributed under the terms of the GNU General Public License v2 -REPO="`dirname $0`" -TOURNAMENT="2014/1-tabiyas" +REPODIR="`dirname $0`" +TOURNAMENT="2014/2-summertime" # Config file for players -ply_ini="${REPO}/${TOURNAMENT}/players.ini" +ply_ini="${REPODIR}/${TOURNAMENT}/players.ini" get_game_players() { # Extract players on Lichess @@ -128,7 +128,7 @@ get_game_players date=$(sed -En "s/\[Date \"([^\"]*)\"\]/\1/p" < "$tmp_pgn") date=$(tr '.' '-' <<< "$date") -pgn_dir="${REPO}/${TOURNAMENT}/tours/${TOUR}/${date}-${white}-vs-${black}" +pgn_dir="${REPODIR}/${TOURNAMENT}/tours/${TOUR}/${date}-${white}-vs-${black}" [[ -d "$pgn_dir" ]] && die "Directory ${pgn_dir} already exist." echo "Creating directory ${pgn_dir}..." diff --git a/schedule b/schedule index d9b68fc..a26bac7 100755 --- a/schedule +++ b/schedule @@ -4,7 +4,7 @@ # REPO="https://raw.githubusercontent.com/fat0troll/lorchess/master" REPO="`dirname $0`" -TOURNAMENT="2014/1-tabiyas" +TOURNAMENT="2014/2-summertime" # Version information VERSION="0.4" diff --git a/tour-parse b/tour-parse index 2438b1b..67cd4d6 100755 --- a/tour-parse +++ b/tour-parse @@ -1,7 +1,7 @@ #!/usr/bin/env bash YEAR=2014 -TOURNAMENT=1-tabiyas +TOURNAMENT=2-summertime SCRIPT_PATH=`dirname $0` # Regexps to parse the result of game