mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
Updated release util for getting Implemented Cards list
This commit is contained in:
parent
02d41fd65f
commit
ff09d97b89
2 changed files with 14 additions and 17 deletions
|
|
@ -45,24 +45,26 @@ close(DATA);
|
|||
open CARDS, "< added_cards.txt" or die;
|
||||
while (<CARDS>) {
|
||||
my $line = $_;
|
||||
if ( $line =~/A Mage.Sets\\src\\mage\\sets\\(\w.*)\\(\w.*)\.java/ ) {
|
||||
$cards_count++;
|
||||
if ( $line =~/(\w.*)\/(\w.*)\.java/ ) {
|
||||
my $set = $1;
|
||||
my $card = $2;
|
||||
if (!exists($cards{$set})) {
|
||||
$cards{$set} = [];
|
||||
}
|
||||
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})) {
|
||||
$cards{$set} = [];
|
||||
}
|
||||
|
||||
push @{$cards{$set}}, $card;
|
||||
push @{$cards{$set}}, $card;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
open REPORT, "> added_cards_in_wiki_format.txt";
|
||||
print REPORT " * Added cards ($cards_count):\n";
|
||||
print REPORT "* Added cards ($cards_count):\n";
|
||||
foreach my $set (keys(%cards)) {
|
||||
if ($set ne "tokens") {
|
||||
if (exists $knownSets{$set}) {
|
||||
print REPORT " * $sets{$knownSets{$set}}: ";
|
||||
print REPORT " * $sets{$knownSets{$set}}: ";
|
||||
} else {
|
||||
print REPORT " $set: ";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,13 +1,8 @@
|
|||
1. Go to folder trunk\Mage.Sets\src\mage\sets
|
||||
2. Run command for revision or range of revisions:
|
||||
1. Go to Mage Repository
|
||||
2. Run command exemplified below:
|
||||
|
||||
Examples:
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
3. Copy added_cards.txt to trunk\Utils folder
|
||||
4. Run script:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue