Commit 853ee807 authored by Fabien Rozar's avatar Fabien Rozar

get_one_subroutine.sh: be able to deal with relative path.

parent a262dddc
......@@ -16,7 +16,8 @@ fi
f=$1
sub=$2
id=$(echo ${f:4:5})
f_id=$(basename $f)
id=$(echo ${f_id:4:5})
beg=`grep -ni -e "^ *subroutine *${sub}_${id}" -e "^ *end *subroutine" $f | grep -i -e "^[0-9]*: *subroutine *$sub" -A1 | head -n2 | head -n1 | cut -d":" -f1`
end=`grep -ni -e "^ *subroutine *${sub}_${id}" -e "^ *end *subroutine" $f | grep -i -e "^[0-9]*: *subroutine *$sub" -A1 | head -n2 | tail -n1 | cut -d":" -f1`
......
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