Now added, sorry
[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 "$0: Result..."
19 echo "--------------------------------------"
20 echo " - Open TODOs: ${TODOS}"
21 echo " - Open DEPRECATED (PHP/TPL): ${DEPRECATED_PHP}/${DEPRECATED_TPL}"
22 echo "--------------------------------------"
23 echo "$0: Thanks for waiting for the final release 0.2.1-FINAL! :-)"
24 echo
25 exit 0