]> git.mxchange.org Git - mailer.git/blobdiff - DOCS/final-checker.sh
final-checker.sh extended with search for global statements
[mailer.git] / DOCS / final-checker.sh
index 3d02a6ceb6d75b80ff8ba7e0448995bc509b74f1..665cb34a6000ef4a386a5e2271ccf0310bfa585e 100644 (file)
@@ -15,10 +15,13 @@ echo " - DEPRECATED PHP..."
 DEPRECATED_PHP=`find -type f -name "*.php" -exec grep "@DEPRECATED" {} \; | grep "@" --count`
 echo " - DEPRECATED TPL..."
 DEPRECATED_TPL=`find -type f -name "*.tpl" -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`
 echo "$0: Result..."
 echo "--------------------------------------"
 echo " - Open TODOs: ${TODOS}"
 echo " - Open DEPRECATED (PHP/TPL): ${DEPRECATED_PHP}/${DEPRECATED_TPL}"
+echo " - Global statements: ${GLOBA:S}"
 echo "--------------------------------------"
 echo "$0: Thanks for waiting for the final release 0.2.1-FINAL! :-)"
 echo