X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=DOCS%2Ffinal-checker.sh;h=93e39a701e367ef0f36d3f0467f73c5b91f23db1;hp=4f2f2fa7657bba83126e6b605cd654f88b193949;hb=447cb1bc3f58d6906321165b071fb9e0c0eeeb59;hpb=71fc0c9c8698873f69c95b37eb33f3b63c858702 diff --git a/DOCS/final-checker.sh b/DOCS/final-checker.sh old mode 100644 new mode 100755 index 4f2f2fa765..93e39a701e --- a/DOCS/final-checker.sh +++ b/DOCS/final-checker.sh @@ -9,19 +9,21 @@ if ! test -e "modules.php"; then fi echo "$0: Analyzing..." -echo " - TODOs..." -TODOS=`find -type f -name "*.php" -exec grep "@TODO" {} \; | grep "@" --count` +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 " - 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` +GLOBALS=`find -type f -name "*.php" -exec grep -Hn "global " {} \; | grep -v "//" | 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}" +echo " - Open DEPRECATED: ${DEPRECATED_PHP}/${DEPRECATED_TPL}" +echo " - global statements: ${GLOBALS}" echo "--------------------------------------" echo "$0: Thanks for waiting for the final release 0.2.1-FINAL! :-)" echo