From a5548068dca233cd930816f17b638b5fbf5e7f2d Mon Sep 17 00:00:00 2001 From: mfranz Date: Sat, 21 Jul 2007 21:28:39 +0000 Subject: [PATCH] check for evil "userarchive" flags (in aircraft xml files) --- scripts/tools/fg-check | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/tools/fg-check b/scripts/tools/fg-check index b094bd6c5..47798ca42 100755 --- a/scripts/tools/fg-check +++ b/scripts/tools/fg-check @@ -85,6 +85,14 @@ find . -name thumbnail.jpg|while read i; do done +LOG "checking for 'userarchive' flags (not allowed in aircraft XML files) ..." +find . -name \*.xml|while read i; do + if grep "userarchive" $i >/dev/null; then + RESULT "$i" + fi +done + + LOG "checking for XML syntax ..." find . -name \*.xml|while read i; do xmllint $i >/dev/null || RESULT "... in file \e[36m$i\e[m"