diff options
author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2019-12-19 13:38:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-19 13:38:05 -0500 |
commit | af6ff9956de7c0689e4c61cec8bf0dc10fd5fdc5 (patch) | |
tree | 67ad686181a06092cc02fb5cf6f7543e9c7915bb | |
parent | 44659b37055b9d0ef8d7665603619245b251b9eb (diff) | |
parent | a75382d577203174cedb97adf6281a8e9015e33f (diff) |
Merge pull request #188 from pret/calcrom-no-baserom
No more baseroms in calcrom.pl
-rwxr-xr-x[-rw-r--r--] | .travis/calcrom/calcrom.pl | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/.travis/calcrom/calcrom.pl b/.travis/calcrom/calcrom.pl index d252be996..603a727d9 100644..100755 --- a/.travis/calcrom/calcrom.pl +++ b/.travis/calcrom/calcrom.pl @@ -136,25 +136,10 @@ print "$documented symbols documented ($docPct%)\n"; print "$partial_documented symbols partially documented ($partialPct%)\n"; print "$undocumented symbols undocumented ($undocPct%)\n"; -my $foundLines = `git grep '\.incbin "baserom\.gba"' data/`; -my @allLines = split('\n', $foundLines); -my $incbinTotal = 0; -my $incbinNum = 0; -foreach my $line (@allLines) -{ - if ($line =~ /\.incbin\s+"baserom\.gba",\s*0x\w+,\s*(.+?)\s*(\@.*)?$/) - { - my $size = hex($1); - $incbinTotal += $size; - $incbinNum++; - } -} print "\n"; my $dataTotal = $srcdata + $data; my $srcDataPct = sprintf("%.4f", 100 * $srcdata / $dataTotal); my $dataPct = sprintf("%.4f", 100 * $data / $dataTotal); -my $incbinTotalPct = sprintf("%.4f", 100 * $incbinTotal / $dataTotal); print "$dataTotal total bytes of data\n"; print "$srcdata bytes of data in src ($srcDataPct%)\n"; print "$data bytes of data in data ($dataPct%)\n"; -print "$incbinNum baserom incbins with a combined $incbinTotal bytes ($incbinTotalPct%)\n"; |