Continued:
[core.git] / contrib / remove-deprecated.sh
1 #!/bin/sh
2
3 if ! test -e ".gitignore"; then
4         echo "$0: Please execute this script from root directory."
5         exit 1
6 fi
7
8 echo "$0: Searching for deprecated PHP scripts ..."
9 LIST=$(find -type f -name "*.php" -size 21c -exec grep -H "@DEPRECATED" {} \; | grep -v "/core/" | cut -d ":" -f 1)
10
11 if [ -n "${LIST}" ]
12 then
13         echo "${LIST}" | xargs git rm --force
14         sh ./contrib/todo-builder.sh
15 fi