More missing config entries added
[mailer.git] / DOCS / final-checker.sh
1 #!/bin/sh
2
3 # Shell script to determine how close we are to final release
4 # If one of these values are bigger zero we still have to do something
5 #
6 if ! test -e "modules.php"; then
7   echo "$0: Please execute this script from root directory."
8   exit 1
9 fi
10
11 echo "$0: Analyzing..."
12 echo " - TODOs..."
13 TODOS=`find -type f -name "*.php" -exec grep "@TODO" {} \; | grep "@" --count`
14 echo " - DEPRECATED PHP..."
15 DEPRECATED_PHP=`find -type f -name "*.php" -exec grep "@DEPRECATED" {} \; | grep "@" --count`
16 echo " - DEPRECATED TPL..."
17 DEPRECATED_TPL=`find -type f -name "*.tpl" -exec grep "@DEPRECATED" {} \; | grep "@" --count`
18 echo " - global statements..."
19 GLOBALS=`find -type f -name "*.php" -exec grep -Hn "global " {} \; | grep -v "//" | grep -v "phpmailer" | grep -v "/language/" | grep -v "EXT_" --count`
20 echo "$0: Result..."
21 echo "--------------------------------------"
22 echo " - Open TODOs: ${TODOS}"
23 echo " - Open DEPRECATED (PHP/TPL): ${DEPRECATED_PHP}/${DEPRECATED_TPL}"
24 echo " - Global statements: ${GLOBALS}"
25 echo "--------------------------------------"
26 echo "$0: Thanks for waiting for the final release 0.2.1-FINAL! :-)"
27 echo
28 exit 0