From da4e3a5b6670e5116c95d7c6db8d7155d66968e6 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 14 Apr 2017 01:56:17 +0200 Subject: Dates config expanded, standard path included in uniform build scripts --- bin/build.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 bin/build.sh (limited to 'bin/build.sh') 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 -- cgit v1.2.3