X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=todo-builder.sh;fp=todo-builder.sh;h=360b8888e2509f057431d6cc6dd4a8803a30140e;hb=97cf8ba03ad3f107f9d0a296fa715c83ee784955;hp=0000000000000000000000000000000000000000;hpb=3f10f5007564b06e06415821f76c71503a6c317e;p=mailer.git diff --git a/todo-builder.sh b/todo-builder.sh new file mode 100755 index 0000000000..360b8888e2 --- /dev/null +++ b/todo-builder.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +# 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 +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 +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 +echo "$0: Done." +exit 0