X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=DOCS%2Ftodo-builder.sh;h=1bcf8c1aa4968c32266881d2086f2d110dd6478a;hb=dd3f996989d9fd027b007fe829ae7356f3780b37;hp=3f238d7ae1e42b2fac01852e019315236b4cf398;hpb=da7b89a86040b778274dd89201e2a339232276fb;p=mailer.git diff --git a/DOCS/todo-builder.sh b/DOCS/todo-builder.sh old mode 100644 new mode 100755 index 3f238d7ae1..1bcf8c1aa4 --- a/DOCS/todo-builder.sh +++ b/DOCS/todo-builder.sh @@ -8,13 +8,23 @@ if ! test -e "modules.php"; then exit 1 fi +TODO=`dirname $0`/TODOs.txt + echo "$0: Generating TODOs.txt ..." -echo "### WARNING: THIS FILE IS AUTO-GENERATED BY $0 ($UID/$USER) ###" > DOCS/TODOs.txt -echo "### DO NOT EDIT THIS FILE. ###" >> DOCS/TODOs.txt +echo "### WARNING: THIS FILE IS AUTO-GENERATED BY $0 (uid=$UID/user=$USER) ###" > $TODO +echo "### DO NOT EDIT THIS FILE. ###" >> $TODO echo "$0: Searching for @TODO ..." -find -type f -name "*.php" -exec grep -Hin "@TODO" {} \; | sort >> DOCS/TODOs.txt -echo "### ### DEPRECATION FOLLOWS: ### ###" >> DOCS/TODOs.txt +find -type f -name "*.php" -exec grep -Hin "@TODO" {} \; | sort >> $TODO +echo "### ### DEPRECATION FOLLOWS: ### ###" >> $TODO echo "$0: Searching for @DEPRECATED ..." -find -type f -name "*.php" -exec grep -Hin "@DEPRECATED" {} \; | sort >> DOCS/TODOs.txt +find -type f -name "*.php" -exec grep -Hin "@DEPRECATED" {} \; | sort >> $TODO +find -type f -name "*.tpl" -exec grep -Hin "@DEPRECATED" {} \; | sort >> $TODO +echo "$0: Checking for template-warnings.log ..." +LOG=`dirname $0`/template-warnings.log +if test -e "$LOG"; then + echo "$0: Found a template-warnings.log, adding it..." + echo "### ### template-warnings.log follows: ### ###" >> $TODO + cat $LOG >> $TODO +fi echo "$0: Done." exit 0