File: familycheck.sh

package info (click to toggle)
radeontop 0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 208 kB
  • ctags: 147
  • sloc: ansic: 1,399; makefile: 81; sh: 24
file content (10 lines) | stat: -rwxr-xr-x 387 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
# Check that the two places with family enums are in good condition.
# The next-best thing to the compiler enforcing it.

fam=`cut -d, -f3 include/r600_pci_ids.h | cut -d\) -f1 | sed -e 's@^ *@@' -e '/^$/d' | uniq`

for i in $fam; do
	grep -q $i family_str.c || echo $i missing from family_str.c
	grep -q $i include/radeontop.h || echo $i missing from include/radeontop.h
done