]> git.mxchange.org Git - flightgear.git/commitdiff
check for evil "userarchive" flags (in aircraft xml files)
authormfranz <mfranz>
Sat, 21 Jul 2007 21:28:39 +0000 (21:28 +0000)
committermfranz <mfranz>
Sat, 21 Jul 2007 21:28:39 +0000 (21:28 +0000)
scripts/tools/fg-check

index b094bd6c53ef2dcdaa9661552d8c70eeba8a421b..47798ca42a9b4f1dd1582ee693f633f5a24090c7 100755 (executable)
@@ -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"