X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=contrib%2Fremove-deprecated.sh;fp=contrib%2Fremove-deprecated.sh;h=ed342472798f0565f0cdf15e16d7710558720d04;hb=61d2760fac101ab7d766fde01a50c4b349265c12;hp=0000000000000000000000000000000000000000;hpb=b8a4e85ccecf32f130dd38fd3ce13eddef155f23;p=hub.git diff --git a/contrib/remove-deprecated.sh b/contrib/remove-deprecated.sh new file mode 100755 index 000000000..ed3424727 --- /dev/null +++ b/contrib/remove-deprecated.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +if ! test -e "index.php"; then + echo "$0: Please execute this script from root directory." + exit 1 +fi + +echo "$0: Searching for deprecated PHP scripts ..." +LIST1=`find -type f -name "*.php" -size 24c -exec grep -H "@DEPRECATED" {} \;` + +LIST="${LIST1} ${LIST2}" + +if test "${LIST}" != " "; then + echo "${LIST}" | cut -d ":" -f 1 | xargs svn --force del + sh ./todo-builder.sh +fi