File: GenCoverage

package info (click to toggle)
fcode-utils 1.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 46,768 kB
  • sloc: ansic: 9,717; csh: 241; makefile: 129; sh: 17
file content (24 lines) | stat: -rwxr-xr-x 378 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

SRCDIR=$1
DSTDIR=$2
BASENAME=$DSTDIR
TITLE="$3"

printf "Generating info file..."
geninfo -t $BASENAME -o $BASENAME.info $SRCDIR 2>/dev/null
printf "ok\n"

printf "Filtering info file..."
sed -i "/stat\.h/ {
N
N
N
N
d
}" $BASENAME.info
printf "ok\n"

genhtml --output-directory $DSTDIR --show-details --highlight --legend --frames --title "$TITLE" $BASENAME.info