annotate if card has groovy script in full text
parent
ba7c3ca36e
commit
12ae269259
5
Makefile
5
Makefile
|
@ -110,7 +110,10 @@ cards/existing_tokens_%.txt: $(wildcard release/Magarena/scripts/*.txt)
|
|||
cards/existing_%.txt: cards/existing_scripts_%.txt cards/existing_tokens_%.txt
|
||||
join -v1 -t"|" <(sort $(word 1,$^)) <(sort $(word 2,$^)) > $@
|
||||
|
||||
%_full.txt: scripts/extract_candidates.awk %.txt cards/mtg-data.txt
|
||||
cards/groovy.txt:
|
||||
grep -ho "name=.*" `grep requires_groovy_code -lr release/Magarena/scripts` | sed 's/name=//' | sort > $@
|
||||
|
||||
%_full.txt: scripts/extract_candidates.awk %.txt cards/groovy.txt cards/mtg-data.txt
|
||||
awk -f $^ | sed 's/\t/\n/g' > $@
|
||||
|
||||
cards/candidates_full.txt: scripts/extract_candidates.awk cards/scored_by_dec.tsv cards/unimplementable.tsv cards/mtg-data.txt
|
||||
|
|
|
@ -34,6 +34,11 @@ FILENAME ~ /unimplementable/ {
|
|||
next
|
||||
}
|
||||
|
||||
FILENAME ~ /groovy/ {
|
||||
comment[$1] = "groovy"
|
||||
next
|
||||
}
|
||||
|
||||
{
|
||||
if (NF == 1) {
|
||||
score[$1] = 1
|
||||
|
|
Loading…
Reference in New Issue