Updated release util for getting Implemented Cards list

This commit is contained in:
North 2012-06-30 19:25:41 +03:00
parent 02d41fd65f
commit ff09d97b89
2 changed files with 14 additions and 17 deletions

View file

@ -45,10 +45,11 @@ close(DATA);
open CARDS, "< added_cards.txt" or die; open CARDS, "< added_cards.txt" or die;
while (<CARDS>) { while (<CARDS>) {
my $line = $_; my $line = $_;
if ( $line =~/A Mage.Sets\\src\\mage\\sets\\(\w.*)\\(\w.*)\.java/ ) { if ( $line =~/(\w.*)\/(\w.*)\.java/ ) {
$cards_count++;
my $set = $1; my $set = $1;
my $card = $2; my $card = $2;
if ($2 ne "Swamp" and $2 ne "Mountain" and $2 ne "Island" and $2 ne "Plains" and $2 ne "Forest") {
$cards_count++;
if (!exists($cards{$set})) { if (!exists($cards{$set})) {
$cards{$set} = []; $cards{$set} = [];
} }
@ -56,6 +57,7 @@ while (<CARDS>) {
push @{$cards{$set}}, $card; push @{$cards{$set}}, $card;
} }
} }
}
open REPORT, "> added_cards_in_wiki_format.txt"; open REPORT, "> added_cards_in_wiki_format.txt";
print REPORT "* Added cards ($cards_count):\n"; print REPORT "* Added cards ($cards_count):\n";

View file

@ -1,13 +1,8 @@
1. Go to folder trunk\Mage.Sets\src\mage\sets 1. Go to Mage Repository
2. Run command for revision or range of revisions: 2. Run command exemplified below:
Examples: For cards added since tagOrSha1 till head revision (you can replace HEAD with another tagOrSha1):
git log tagOrSha1..HEAD --diff-filter=A --name-status | sed -ne 's/^A[^u]Mage.Sets\/src\/mage\/sets\///p' | sort -u > added_cards.txt
For cards added since r1494 till head revision:
hg status --rev 1494 -a --exclude "*\Island[0-9].java" --exclude "*\Mountain[0-9].java" --exclude "*\Swamp[0-9].java" --exclude "*\Plains[0-9].java" --exclude "*\Forest[0-9].java" --include "*\*.java" > added_cards.txt
For cards added since r1494 till r1550:
just use --rev 1494:1550 instead
3. Copy added_cards.txt to trunk\Utils folder 3. Copy added_cards.txt to trunk\Utils folder
4. Run script: 4. Run script: