termcol: trim 8-colour xcolors palettes
[sheet.git] / tools / mktermcol-xcolor
index 596bb56d82789a8defde29e7a970048dff474c7b..74bed79aa3ee1f3eaba6f7db2eba7b5380d00f73 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env perl
-use 5.010;
+use 5.014;
 
 use Shiar_Sheet::Colour 1.05;
 
@@ -46,6 +46,8 @@ for my $path (@ARGV) {
                next;
        }
 
+       splice @pal, 8 if "@pal[0..7]" eq "@pal[8..15]";
+
        say qq("$name" => {);
        say qq(\ttitle => '$name',);
        say qq(\tparent => 'cga',);