Changeset 4352


Ignore:
Timestamp:
Feb 9, 2010, 1:49:31 AM (13 years ago)
Author:
Sam Hocevar
Message:

Make the check-source test more generic.

Location:
libcaca/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/Makefile.am

    r4333 r4352  
    3232        tools/makefont monobold12 "Monospace Bold 12" 96 4 >| $(srcdir)/caca/monobold12.data
    3333
     34echo-dirs: ; echo caca kernel src cxx examples ruby tools
     35
    3436FORCE:
  • libcaca/trunk/test/check-source

    r4351 r4352  
    77nfiles=0
    88nlines=0
    9 for dir in caca kernel src cxx examples ruby tools; do
     9for dir in $(make -s echo-dirs -C ..); do
     10  if [ ! -d "../$dir" ]; then continue; fi
    1011  for x in $(make -s echo-sources -C ../$dir); do
    1112    case "$x" in
    12       *.c|*.cpp|*.h|*.m)
     13      *.c|*.cpp|*.h|*.m|*.php|*.cs|*.java|.py|.pl)
    1314        nfiles=$(($nfiles + 1));
    1415        nlines=$(($nlines + `grep -c . "../$dir/$x"`)) ;;
Note: See TracChangeset for help on using the changeset viewer.