[colobot] 70/390: Updated level check script
Didier Raboud
odyx at moszumanska.debian.org
Fri Jun 12 14:21:29 UTC 2015
This is an automated email from the git hooks/post-receive script.
odyx pushed a commit to branch upstream/latest
in repository colobot.
commit fd68ac923acb14550c5eb2c8d07ef6c9ed87714c
Author: krzys-h <krzys_h at interia.pl>
Date: Sat Sep 27 18:27:45 2014 +0200
Updated level check script
---
tools/check-levels.sh | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/tools/check-levels.sh b/tools/check-levels.sh
index 22544fb..127375f 100755
--- a/tools/check-levels.sh
+++ b/tools/check-levels.sh
@@ -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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git
More information about the Pkg-games-commits
mailing list