3 # This script helps building the file DOCS/TODOs.txt and should be executed by
4 # developers with SVN write-access
6 if ! test -e "modules.php"; then
7 echo "$0: Please execute this script from root directory."
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