added rule/script to check for string literals that contains the card name

master
melvin 2011-08-26 20:22:21 +08:00
parent 25751285f1
commit fc8a666678
2 changed files with 16 additions and 0 deletions

View File

@ -10,6 +10,9 @@ EXE:=release/Magarena.exe
all: $(MAG) $(EXE) tags
check_literals:
grep "\"" src/magic/card/* | awk -f scripts/check_literals.awk
cubes: \
release/mods/legacy_cube.txt \
release/mods/extended_cube.txt \

View File

@ -0,0 +1,13 @@
BEGIN {
FS = "[_/\".]"
}
{
for (i = 5; i <= NF; i++) {
if ($i ~ $4) {
print $0
break
}
}
}