charset: update bmp allocation to unicode v9.0 roadmap
[sheet.git] / tools / mktermcol-xcolor
index 112dd833a6cebff8004623f6b075ff18d8d7b32b..596bb56d82789a8defde29e7a970048dff474c7b 100755 (executable)
@@ -1,11 +1,12 @@
 #!/usr/bin/env perl
 use 5.010;
 
-use Shiar_Sheet::Colour '1.05';
+use Shiar_Sheet::Colour 1.05;
 
 say 'use strict;';
 say '+{';
 my @names;
+my %seen;
 
 for my $path (@ARGV) {
        open my $theme, '<', $path or do {
@@ -40,6 +41,11 @@ for my $path (@ARGV) {
        $huesum > 3 or next;  # require number of significant hue changes
        #TODO tweak to include good-pants, exclude cheesecake-*
 
+       if ($seen{"@pal"}++) {
+               warn "ignore duplicate palette $name\n";
+               next;
+       }
+
        say qq("$name" => {);
        say qq(\ttitle => '$name',);
        say qq(\tparent => 'cga',);