File: count_ACX.sh

package info (click to toggle)
acx100 20060521-3
  • links: PTS
  • area: contrib
  • in suites: etch, etch-m68k
  • size: 836 kB
  • ctags: 2,349
  • sloc: ansic: 14,341; sh: 636; makefile: 111; perl: 101
file content (11 lines) | stat: -rw-r--r-- 273 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

# Useful to identify which files contain PCI/USB
# specific parts, and how many of them

{
echo "    ACX_PCI"
grep -c '^#if ACX_PCI$' * | sort -t: -k2,99 -r | grep -v :0$
echo "    ACX_USB"
grep -c '^#if ACX_USB$' * | sort -t: -k2,99 -r | grep -v :0$
} | $PAGER