X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=contrib%2Fremove-deprecated.sh;h=6148bf133e96ba984782ba7fa32feeb85b51427c;hb=d44a7739c860ef0f30e29167b0fea0d2141ebce6;hp=99ea27139dbe9fd85c64ea83d1a70e8516b183b7;hpb=6b1e55213d76a67e9aa3d9f1e4dcb55e0bbf12ee;p=mailer.git diff --git a/contrib/remove-deprecated.sh b/contrib/remove-deprecated.sh index 99ea27139d..6148bf133e 100755 --- a/contrib/remove-deprecated.sh +++ b/contrib/remove-deprecated.sh @@ -6,7 +6,7 @@ if ! test -e "modules.php"; then fi echo "$0: Searching for deprecated PHP scripts ..." -LIST1=`find -type f -name "*.php" -size 24c -exec grep -H "@DEPRECATED" {} \;` +LIST1=`find -type f -name "*.php" -size -52c -exec grep -H "@DEPRECATED" {} \;` echo "$0: Searching for deprecated templates ..." LIST2=`find -type f -name "*.tpl" -exec grep -H "@DEPRECATED" {} \;` @@ -14,6 +14,6 @@ LIST2=`find -type f -name "*.tpl" -exec grep -H "@DEPRECATED" {} \;` LIST="${LIST1} ${LIST2}" if test "${LIST}" != " "; then - echo "${LIST}" | cut -d ":" -f 1 | xargs svn --force del - sh ../../contrib/todo-builder.sh + echo "${LIST}" | cut -d ":" -f 1 | xargs git rm + sh `dirname $0`/todo-builder.sh fi