Updated level check script

dev-mp
krzys-h 2014-09-27 18:27:45 +02:00
parent b3fa72c007
commit fd68ac923a
1 changed files with 14 additions and 4 deletions

View File

@ -2,8 +2,18 @@
# Runs every level in scenetest mode
levels=`ls /usr/local/share/games/colobot/levels | cut -d "." -f 1`
for level in $levels; do
echo $level
colobot -runscene $level -scenetest -loglevel warn
categories=`ls /usr/local/share/games/colobot/levels`
for category in $categories; do
if [ "$category" = "other" ]; then continue; fi
chapters=`ls /usr/local/share/games/colobot/levels/$category`
for chapter in $chapters; do
chapter=`echo -n $chapter | tail -c 1`
levels=`ls /usr/local/share/games/colobot/levels/$category/chapter00$chapter`
for level in $levels; do
if [ ! -d /usr/local/share/games/colobot/levels/$category/chapter00$chapter/$level ]; then continue; fi
level=`echo -n $level | cut -d . -f 1 | tail -c 3`
echo $category$chapter$level
colobot -runscene $category$chapter$level -scenetest -loglevel warn
done
done
done