First batch of fixed language ids (renamed, see ticket #219)
[mailer.git] / DOCS / remove-deprecated.sh
index 045d8025702b01f8c4680544689a8d56f7cae1e6..87bed750d944fee16987e144d4e9d3dcfc3bc11d 100755 (executable)
@@ -1,5 +1,12 @@
 #!/bin/sh
 
+if ! test -e "modules.php"; then
+  echo "$0: Please execute this script from root directory."
+  exit 1
+fi
+
 LIST=`find -name "*.tpl" -exec grep -H "@DEPRECATED" {} \;`
-echo "${LIST}" | cut -d ":" -f 1 | xargs svn --force del
-sh ./DOCS/todo-builder.sh
+if test "${LIST}" != ""; then
+       echo "${LIST}" | cut -d ":" -f 1 | xargs svn --force del
+       sh ./DOCS/todo-builder.sh
+fi