X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=todo-builder.sh;h=295b6ba0f923fd980b854f1a4135b236f463c278;hb=c4d703772169c4d0de240db6aa94d05b18d49075;hp=360b8888e2509f057431d6cc6dd4a8803a30140e;hpb=44ccbc242c4f84604dbeb117bb18070e0d137607;p=ctracker.git diff --git a/todo-builder.sh b/todo-builder.sh index 360b888..295b6ba 100755 --- a/todo-builder.sh +++ b/todo-builder.sh @@ -3,9 +3,7 @@ # This script helps building the file docs/TODOs.txt and should be executed by # developers with SVN write-access -TYPES="php ctp xml" - -if ! test -e "index.php"; then +if ! test -e "docs"; then echo "$0: Please execute this script from root directory." exit 1 fi @@ -13,12 +11,8 @@ 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 -for type in $TYPES; do - find -type f -name "*.$type" -exec grep -Hin "@TODO" {} \; | sort >> docs/TODOs.txt -done +find -type f -name "*.php" -exec grep -Hin "@TODO" {} \; | sort >> docs/TODOs.txt echo "### ### DEPRECATION FOLLOWS: ### ###" >> docs/TODOs.txt -for type in $TYPES; do - find -type f -name "*.$type" -exec grep -Hin "@DEPRECATED" {} \; | sort >> docs/TODOs.txt -done +find -type f -name "*.php" -exec grep -Hin "@DEPRECATED" {} \; | sort >> docs/TODOs.txt echo "$0: Done." exit 0