X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=DOCS%2Ftodo-builder.sh;h=9eb697114bbe60c348dd8f906d56a7eb6368e7cd;hp=a005c9bbc71e89732efe88c7bce460b06f423407;hb=447cb1bc3f58d6906321165b071fb9e0c0eeeb59;hpb=b7d58f3179de36d34e691500e98b49bcdbe3d5d3 diff --git a/DOCS/todo-builder.sh b/DOCS/todo-builder.sh old mode 100644 new mode 100755 index a005c9bbc7..9eb697114b --- a/DOCS/todo-builder.sh +++ b/DOCS/todo-builder.sh @@ -8,11 +8,24 @@ if ! test -e "modules.php"; then exit 1 fi -echo "$0: Generating TODOs.txt..." -echo "### WARNING: THIS FILE IS AUTO-GENERATED BY $0 ###" > DOCS/TODOs.txt -echo "### DO NOT EDIT THIS FILE. ###" >> DOCS/TODOs.txt -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 "@DEPRECATED" {} \; | sort >> DOCS/TODOs.txt +TODO=`dirname $0`/TODOs.txt + +echo "$0: Generating 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 >> $TODO +find -type f -name "*.tpl" -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 >> $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