X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=contrib%2Ftodo-builder.sh;fp=contrib%2Ftodo-builder.sh;h=295b6ba0f923fd980b854f1a4135b236f463c278;hp=0000000000000000000000000000000000000000;hb=3bf7a368ab63fcdd3602d21f5be2467e2c23d501;hpb=238fcd968e490db9390a7da03091379b81d9d809 diff --git a/contrib/todo-builder.sh b/contrib/todo-builder.sh new file mode 100755 index 00000000..295b6ba0 --- /dev/null +++ b/contrib/todo-builder.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +# This script helps building the file docs/TODOs.txt and should be executed by +# developers with SVN write-access + +if ! test -e "docs"; 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 +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 +echo "$0: Done." +exit 0