Explorar el Código

Make the check-source test more generic.

tags/v0.99.beta18
Sam Hocevar sam hace 16 años
padre
commit
8c4ac14327
Se han modificado 2 ficheros con 5 adiciones y 2 borrados
  1. +2
    -0
      Makefile.am
  2. +3
    -2
      test/check-source

+ 2
- 0
Makefile.am Ver fichero

@@ -31,4 +31,6 @@ update-fonts: tools/makefont
tools/makefont mono9 "Monospace 9" 96 4 >| $(srcdir)/caca/mono9.data
tools/makefont monobold12 "Monospace Bold 12" 96 4 >| $(srcdir)/caca/monobold12.data

echo-dirs: ; echo caca kernel src cxx examples ruby tools

FORCE:

+ 3
- 2
test/check-source Ver fichero

@@ -6,10 +6,11 @@
nfails=0
nfiles=0
nlines=0
for dir in caca kernel src cxx examples ruby tools; do
for dir in $(make -s echo-dirs -C ..); do
if [ ! -d "../$dir" ]; then continue; fi
for x in $(make -s echo-sources -C ../$dir); do
case "$x" in
*.c|*.cpp|*.h|*.m)
*.c|*.cpp|*.h|*.m|*.php|*.cs|*.java|.py|.pl)
nfiles=$(($nfiles + 1));
nlines=$(($nlines + `grep -c . "../$dir/$x"`)) ;;
*)


Cargando…
Cancelar
Guardar