Parser error fixed and should be span instead of div, TODOs.txt updated
[mailer.git] / DOCS / todo-builder.sh
1 #!/bin/sh
2
3 # This script helps building the file DOCS/TODOs.txt and should be executed by
4 # developers with SVN write-access
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: Generating TODOs.txt ..."
12 echo "### WARNING: THIS FILE IS AUTO-GENERATED BY $0 ($UID/$USER) ###" > DOCS/TODOs.txt
13 echo "### DO NOT EDIT THIS FILE. ###" >> DOCS/TODOs.txt
14 echo "$0: Searching for @TODO ..."
15 find -type f -name "*.php" -exec grep -Hin "@TODO" {} \; | sort >> DOCS/TODOs.txt
16 echo "### ### DEPRECATION FOLLOWS: ### ###" >> DOCS/TODOs.txt
17 echo "$0: Searching for @DEPRECATED ..."
18 find -type f -name "*.php" -exec grep -Hin "@DEPRECATED" {} \; | sort >> DOCS/TODOs.txt
19 echo "$0: Done."
20 exit 0