First batch of fixed language ids (renamed, see ticket #219)
[mailer.git] / DOCS / final-checker.sh
old mode 100644 (file)
new mode 100755 (executable)
index 4f2f2fa..322b938
@@ -9,19 +9,25 @@ if ! test -e "modules.php"; then
 fi
 
 echo "$0: Analyzing..."
-echo " - TODOs..."
-TODOS=`find -type f -name "*.php" -exec grep "@TODO" {} \; | grep "@" --count`
-echo " - DEPRECATED PHP..."
+echo " - TODOs in PHP..."
+TODOS_PHP=`find -type f -name "*.php" -exec grep "@TODO" {} \; | grep "@" --count`
+echo " - TODOs in TPL..."
+TODOS_TPL=`find -type f -name "*.tpl" -exec grep "@TODO" {} \; | grep "@" --count`
+echo " - TODOs in XML..."
+TODOS_XML=`find -type f -name "*.xml" -exec grep "@TODO" {} \; | grep "@" --count`
+echo " - DEPRECATED in PHP..."
 DEPRECATED_PHP=`find -type f -name "*.php" -exec grep "@DEPRECATED" {} \; | grep "@" --count`
-echo " - DEPRECATED TPL..."
+echo " - DEPRECATED in TPL..."
 DEPRECATED_TPL=`find -type f -name "*.tpl" -exec grep "@DEPRECATED" {} \; | grep "@" --count`
+echo " - DEPRECATED in XML..."
+DEPRECATED_XML=`find -type f -name "*.xml" -exec grep "@DEPRECATED" {} \; | grep "@" --count`
 echo " - global statements..."
-GLOBALS=`find -type f -name "*.php" -exec grep -Hn "global " {} \; | grep -v "//" | grep -v "phpmailer" | grep -v "/language/" | grep -v "EXT_" --count`
+GLOBALS=`find -type f -name "*.php" -exec grep -Hn "global " {} \; | grep -v "//" | grep -v "security_functions.php" | grep -v "phpmailer" --count`
 echo "$0: Result..."
 echo "--------------------------------------"
-echo " - Open TODOs: ${TODOS}"
-echo " - Open DEPRECATED (PHP/TPL): ${DEPRECATED_PHP}/${DEPRECATED_TPL}"
-echo " - Global statements: ${GLOBALS}"
+echo " - Open TODOs: ${TODOS_PHP}/${TODOS_TPL}/${TODOS_XML}"
+echo " - Open DEPRECATED: ${DEPRECATED_PHP}/${DEPRECATED_TPL}/${DEPRECATED_XML}"
+echo " - global statements: ${GLOBALS}"
 echo "--------------------------------------"
 echo "$0: Thanks for waiting for the final release 0.2.1-FINAL! :-)"
 echo