X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=DOCS%2Fremove-deprecated.sh;h=87bed750d944fee16987e144d4e9d3dcfc3bc11d;hb=e1cf98e08d4d92edf492396b82c67efa97a0ece8;hp=045d8025702b01f8c4680544689a8d56f7cae1e6;hpb=39e23cf756c4bfac9bd692e4d98609c5c2a8f066;p=mailer.git diff --git a/DOCS/remove-deprecated.sh b/DOCS/remove-deprecated.sh index 045d802570..87bed750d9 100755 --- a/DOCS/remove-deprecated.sh +++ b/DOCS/remove-deprecated.sh @@ -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