Introduced FileNotFoundException
[core.git] / contrib / remove-deprecated.sh
1 #!/bin/sh
2
3 if ! test -e "svn-externals.txt"; 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 LIST1=`find -type f -name "*.php" -size 24c -exec grep -H "@DEPRECATED" {} \;`
10
11 LIST="${LIST1} ${LIST2}"
12
13 if test "${LIST}" != " "; then
14         echo "${LIST}" | cut -d ":" -f 1 | xargs svn --force del
15         sh ./todo-builder.sh
16 fi