OLD | NEW |
---|---|
(Empty) | |
1 #!/bin/bash | |
2 | |
3 # Running gcov with -a (--all-blocks) will hang on some files. lcov uses -a. | |
4 # This shim strips out that flag (a minor feature) so we can run gcov. | |
5 | |
6 CMD="gcov" | |
7 | |
8 while (( "$#" )); do | |
9 if [[ $1 != "-a" && $1 != "-all-blocks" && $1 != "--all-blocks" ]]; then | |
borenet
2013/09/12 17:22:58
I'd prefer $1 be in quotes even though it isn't st
mtklein
2013/09/12 17:34:00
Done.
| |
10 CMD="$CMD $1" | |
11 fi | |
12 shift | |
13 done | |
14 | |
15 $CMD | |
OLD | NEW |