diff options
Diffstat (limited to '')
-rwxr-xr-x | mkunit.sh | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1,7 +1,11 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | inputfile="$1" | ||
4 | |||
3 | function mkfunc() | 5 | function mkfunc() |
4 | { | 6 | { |
7 | line=$(grep -nh "{%$1" "$inputfile") | ||
8 | echo "#line ${line%%:*} \"$inputfile\" \\" | ||
5 | echo "void $1() /**< expect ${2:-pass} */" | 9 | echo "void $1() /**< expect ${2:-pass} */" |
6 | } | 10 | } |
7 | 11 | ||