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 TODO=`dirname $0`/TODOs.txt
13 echo "$0: Generating TODOs.txt ..."
14 echo "### WARNING: THIS FILE IS AUTO-GENERATED BY $0 (uid=${UID}/user=${USER}) ###" > ${TODO}
15 echo "### DO NOT EDIT THIS FILE. ###" >> ${TODO}
16 echo "$0: Searching for @TODO ..."
17 find -type f -name "*.php" -exec grep -Hin "@TODO" {} \; | sort >> ${TODO}
18 find -type f -name "*.tpl" -exec grep -Hin "@TODO" {} \; | sort >> ${TODO}
19 find -type f -name "*.xml" -exec grep -Hin "@TODO" {} \; | sort >> ${TODO}
20 echo "### ### DEPRECATION FOLLOWS: ### ###" >> ${TODO}
21 echo "$0: Searching for @DEPRECATED ..."
22 find -type f -name "*.php" -exec grep -Hin "@DEPRECATED" {} \; | sort >> ${TODO}
23 find -type f -name "*.tpl" -exec grep -Hin "@DEPRECATED" {} \; | sort >> ${TODO}
24 find -type f -name "*.xml" -exec grep -Hin "@DEPRECATED" {} \; | sort >> ${TODO}
25 echo "$0: Checking for template-warnings.log ..."
26 LOG=`dirname $0`/template-warnings.log
27 if test -e "${LOG}"; then
28 echo "$0: Found a template-warnings.log, adding it..."
29 echo "### ### template-warnings.log follows: ### ###" >> ${TODO}