From a3cf9b1a65c42359e87a577ac32c1adadeb11d59 Mon Sep 17 00:00:00 2001 From: vonavi Date: Thu, 24 Apr 2014 22:14:41 +0300 Subject: [PATCH] Don't use 'mktable' anymore. --- mktable | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100755 mktable diff --git a/mktable b/mktable deleted file mode 100755 index 95f66df..0000000 --- a/mktable +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash - -YEAR=2014 -TOURNAMENT=1-tabiyas -RESULTS=$YEAR/$TOURNAMENT/results.yml -TABLE=_includes/$TOURNAMENT/table.html - -# Update game results -git checkout master -./tour-parse > $RESULTS -git add $RESULTS -git commit -m "Update game results." -# Successful `git commit' returns exit code `0' -ret_code=$? - -if [[ $ret_code == 0 ]]; then - - # Check the difference between game results - git diff HEAD^ HEAD -- $RESULTS - - # Update the tournament table - bin/lorchess > temp_table.html - git checkout gh-pages - mv temp_table.html $TABLE - git add $TABLE - git commit -m "Update the tournament table." - git checkout master -fi