keyboard: fix empty key titles
[sheet.git] / tools / mktermcol-xcolor
index 596bb56d82789a8defde29e7a970048dff474c7b..7f39c80c4ca6332805c108d80c0c362da8c24623 100755 (executable)
@@ -1,8 +1,9 @@
 #!/usr/bin/env perl
-use 5.010;
+use 5.014;
 
 use Shiar_Sheet::Colour 1.05;
 
+say "# automatically generated by $0";
 say 'use strict;';
 say '+{';
 my @names;
@@ -46,6 +47,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',);