added rule/script to check for string literals that contains the card name
parent
25751285f1
commit
fc8a666678
3
Makefile
3
Makefile
|
@ -10,6 +10,9 @@ EXE:=release/Magarena.exe
|
||||||
|
|
||||||
all: $(MAG) $(EXE) tags
|
all: $(MAG) $(EXE) tags
|
||||||
|
|
||||||
|
check_literals:
|
||||||
|
grep "\"" src/magic/card/* | awk -f scripts/check_literals.awk
|
||||||
|
|
||||||
cubes: \
|
cubes: \
|
||||||
release/mods/legacy_cube.txt \
|
release/mods/legacy_cube.txt \
|
||||||
release/mods/extended_cube.txt \
|
release/mods/extended_cube.txt \
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
BEGIN {
|
||||||
|
FS = "[_/\".]"
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
for (i = 5; i <= NF; i++) {
|
||||||
|
if ($i ~ $4) {
|
||||||
|
print $0
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue