diff options
author | emkael <emkael@tlen.pl> | 2017-04-14 01:56:17 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-04-14 01:56:17 +0200 |
commit | da4e3a5b6670e5116c95d7c6db8d7155d66968e6 (patch) | |
tree | 8365620dd0eab4a6b48f5d8d68417e9c19e475cc /bin/build.sh | |
parent | 8dda3f31a20df59d6748ba78b8bf2683341bcf07 (diff) |
Dates config expanded, standard path included in uniform build scripts
Diffstat (limited to 'bin/build.sh')
-rwxr-xr-x | bin/build.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/bin/build.sh b/bin/build.sh new file mode 100755 index 0000000..4cd0f90 --- /dev/null +++ b/bin/build.sh @@ -0,0 +1,20 @@ +#!/bin/bash +CONFIG=$1 +DIR=$2 +rm config/dates.json +ln -s $CONFIG config/dates.json +PREV_DATE="" +cat config/dates.json | + jq '.[] | .date, .url, .index, .name' | + xargs -n4 | + while read DATE URL INDEX NAME + do + python ranking.py $DATE $PREV_DATE > $DIR/$URL + PREV_DATE=$DATE + done +find $DIR -maxdepth 1 -type f -name \*.html | + while read FILE + do + python editions.py $FILE + done +python players.py $DIR/players |