From 467ed7461cf0168c0a1a0ff5610dd6898f207c22 Mon Sep 17 00:00:00 2001 From: vonavi Date: Sat, 5 Oct 2013 10:50:04 +0300 Subject: [PATCH] Add the script to generate the tournament table. --- mktable | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 mktable diff --git a/mktable b/mktable new file mode 100755 index 0000000..927b81b --- /dev/null +++ b/mktable @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +tournament=autumn2013 +results=$tournament/results.yml +table=_includes/$tournament/tournament_table.html + +# Update game results +git checkout master +./tour-parse > $results +git add $results +git commit -m "Update game 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 + +# Push changes +git push --all origin