Commit f89ab163 authored by frozar's avatar frozar

[DEV] Update delete_subroutine script.

parent 2909c463
......@@ -18,8 +18,8 @@ sub=$2
f_tmp=/tmp/${f}_tmp
beg=`grep -ni -e "subroutine *${sub}_" -e "end *subroutine" $f | grep -i -e "^[0-9]*: *!\? *subroutine *$sub" -A1 | head -n1 | cut -d":" -f1`
end=`grep -ni -e "subroutine *${sub}_" -e "end *subroutine" $f | grep -i -e "^[0-9]*: *!\? *subroutine *$sub" -A1 | tail -n1 | cut -d":" -f1`
beg=`grep -ni -e "subroutine *${sub}" -e "end *subroutine" $f | grep -i -e "^[0-9]*: *!\? *subroutine *$sub" -A1 | head -n1 | cut -d":" -f1`
end=`grep -ni -e "subroutine *${sub}" -e "end *subroutine" $f | grep -i -e "^[0-9]*: *!\? *subroutine *$sub" -A1 | tail -n1 | cut -d":" -f1`
if [ "${beg}" == "" ]
then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment