Missing cache loader added from stelzi's branch
[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 ###" > DOCS/TODOs.txt
13 echo "### DO NOT EDIT THIS FILE. ###" >> DOCS/TODOs.txt
14 find -type f -name "*.php" -exec grep -Hn "@TODO" {} \; | sort >> DOCS/TODOs.txt
15 echo "$0: Done."
16 exit 0