The maximum file size needs to be increased a little. Still you may not need
[mailer.git] / contrib / remove-deprecated.sh
index 99ea27139dbe9fd85c64ea83d1a70e8516b183b7..6148bf133e96ba984782ba7fa32feeb85b51427c 100755 (executable)
@@ -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