X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=DOCS%2Ffinal-checker.sh;h=b3de570576e026b8d19b94a6b4dcd7d3ab52dcd6;hp=322b9382d018f72b87d2d3a1845db68b92dc4f84;hb=63f159414369b5ea19a8ca75d8cd8033c45d8341;hpb=a454def0bfba8288ffc839d034c710f034cf4728 diff --git a/DOCS/final-checker.sh b/DOCS/final-checker.sh index 322b9382d0..b3de570576 100755 --- a/DOCS/final-checker.sh +++ b/DOCS/final-checker.sh @@ -1,34 +1 @@ -#!/bin/sh - -# Shell script to determine how close we are to final release -# If one of these values are bigger zero we still have to do something -# -if ! test -e "modules.php"; then - echo "$0: Please execute this script from root directory." - exit 1 -fi - -echo "$0: Analyzing..." -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 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 "security_functions.php" | grep -v "phpmailer" --count` -echo "$0: Result..." -echo "--------------------------------------" -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 -exit 0 +#@DEPRECATED