summaryrefslogtreecommitdiff
path: root/bin/datafiles-build.sh
blob: ed9d8f975b5c54912c68e686e501bef593f6d07e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
CONFIG=$1
DIR=$2
PREV_DATE=""
cat $CONFIG |
    jq -r '.[] | .date' |
    while read DATE
    do
        python scripts/datafiles-generate.py $DATE $PREV_DATE > "$DIR/$DATE.json"
        python scripts/datafiles-generate-minimal.py $DATE > "$DIR/$DATE.minimal.json"
        PREV_DATE=$DATE
    done