summaryrefslogtreecommitdiff
path: root/bin/rankings-tables-generate.sh
blob: 06743c86e436bb3607e0df1d12bd2ce49cae1825 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

DIR=$1
DATE=$2
URL=$3
INDEX=$4
AGEMENU=$5
NAME=$6

python scripts/rankings-tables-compile.py "$NAME" $INDEX $DIR/.menu.html $DATE "$AGEMENU" > $DIR/$URL

shift 6
LINKS=$@

echo $LINKS | grep -v "^$" | while read LINK
do
    ln -sf $URL $DIR/$LINK
done