X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=todo-builder.sh;h=360b8888e2509f057431d6cc6dd4a8803a30140e;hp=c1941f584768143926c054eb79a8b43971f576b6;hb=c78a5c6355611bfad71feaebd7646b32329f808f;hpb=f42bf974e65e115c7f5d3af9fe3c4b6407c617b9 diff --git a/todo-builder.sh b/todo-builder.sh index c1941f5..360b888 100755 --- a/todo-builder.sh +++ b/todo-builder.sh @@ -3,6 +3,8 @@ # 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 echo "$0: Please execute this script from root directory." exit 1 @@ -11,8 +13,12 @@ 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 +for type in $TYPES; do + find -type f -name "*.$type" -exec grep -Hin "@TODO" {} \; | sort >> docs/TODOs.txt +done echo "### ### DEPRECATION FOLLOWS: ### ###" >> docs/TODOs.txt -find -type f -name "*.php" -exec grep -Hin "@DEPRECATED" {} \; | sort >> docs/TODOs.txt +for type in $TYPES; do + find -type f -name "*.$type" -exec grep -Hin "@DEPRECATED" {} \; | sort >> docs/TODOs.txt +done echo "$0: Done." exit 0