summaryrefslogtreecommitdiffstats
path: root/process.sh
blob: 06bba2813eadfaf550e12ceef20c68bbde7fafea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/bash

for name in `ls downloads/*.exe`; do
    if [[ "$name" =~ "velo" ]]; then
        mapname=`basename $name .exe | cut -c 5-`
        img=maps/velo-$mapname.img
    else 
        mapname=`basename $name .exe | cut -c 4-`
        img=maps/mtb-$mapname.img
    fi

    [ -f $img ] && continue

    ./generate.sh $name
    if [ $? -ne 0 ]; then
        break
    fi
done