1
Fork 0

Add the script to generate the tournament table.

master
vonavi 2013-10-05 10:50:04 +03:00
parent 088e5a1943
commit 467ed7461c
1 changed files with 22 additions and 0 deletions

22
mktable Executable file
View File

@ -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