Don't use 'mktable' anymore.
This commit is contained in:
parent
5ad8b7367c
commit
a3cf9b1a65
28
mktable
28
mktable
@ -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
|
Loading…
Reference in New Issue
Block a user