File: familycheck.sh

package info (click to toggle)
radeontop 1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 220 kB
  • sloc: ansic: 1,589; makefile: 107; sh: 24; xml: 16
file content (10 lines) | stat: -rwxr-xr-x 387 bytes parent folder | download | duplicates (3)
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