X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=DOCS%2Ftodo-builder.sh;h=0b4b568bee857aa0e9e5ec72d01d5956f752f33b;hb=766fcb898d34d42249d75f6097d85296aa5f9196;hp=9eb697114bbe60c348dd8f906d56a7eb6368e7cd;hpb=81823a24e050ed6a463b2020ebf64fcfdf99d85d;p=mailer.git diff --git a/DOCS/todo-builder.sh b/DOCS/todo-builder.sh index 9eb697114b..0b4b568bee 100755 --- a/DOCS/todo-builder.sh +++ b/DOCS/todo-builder.sh @@ -11,21 +11,23 @@ fi 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 "### 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 +find -type f -name "*.php" -exec grep -Hin "@TODO" {} \; | sort >> ${TODO} +find -type f -name "*.tpl" -exec grep -Hin "@TODO" {} \; | sort >> ${TODO} +find -type f -name "*.xml" -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 +find -type f -name "*.php" -exec grep -Hin "@DEPRECATED" {} \; | sort >> ${TODO} +find -type f -name "*.tpl" -exec grep -Hin "@DEPRECATED" {} \; | sort >> ${TODO} +find -type f -name "*.xml" -exec grep -Hin "@DEPRECATED" {} \; | sort >> ${TODO} echo "$0: Checking for template-warnings.log ..." LOG=`dirname $0`/template-warnings.log -if test -e "$LOG"; then +if test -e "${LOG}"; then echo "$0: Found a template-warnings.log, adding it..." - echo "### ### template-warnings.log follows: ### ###" >> $TODO - cat $LOG >> $TODO + echo "### ### template-warnings.log follows: ### ###" >> ${TODO} + cat ${LOG} >> ${TODO} fi echo "$0: Done." exit 0