summaryrefslogtreecommitdiff
path: root/bin/rankings-tables-build.sh
blob: 0d8597223316f895e31845f9ecb3d03056ed8de6 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
CONFIG=$1
DIR=$2
cat $CONFIG |
    jq '.[] | .date, .url, .index, .name' |
    xargs -n4 |
    while read DATE URL INDEX NAME
    do
        python scripts/rankings-tables-compile.py "$NAME" $INDEX $DIR/.menu.html $DATE > $DIR/$URL
    done