File: check-makefile.sh

package info (click to toggle)
lasso 2.4.1-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 25,856 kB
  • ctags: 14,480
  • sloc: ansic: 66,107; xml: 23,958; sh: 11,365; python: 7,474; makefile: 1,526; java: 444; php: 325; perl: 117
file content (14 lines) | stat: -rwxr-xr-x 237 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

echo Check makefiles for missing .c or .h files

cd `dirname $0`/..

for i in `git ls-files *.c *.h`; do
	pushd `dirname $i` >/dev/null
	f=`basename $i`
	if ! grep -q $f Makefile.am; then
		echo $i
	fi
	popd >/dev/null
done