index: release v1.18 with only altgr index linked
[sheet.git] / tools / mktermcol-xcolor
index 596bb56d82789a8defde29e7a970048dff474c7b..c705093924dc96748f18a56683d6863e285a390a 100755 (executable)
@@ -1,8 +1,10 @@
 #!/usr/bin/env perl
-use 5.010;
+use 5.014;
 
+BEGIN { push @INC, '.'; }
 use Shiar_Sheet::Colour 1.05;
 
+say "# automatically generated by $0";
 say 'use strict;';
 say '+{';
 my @names;
@@ -46,6 +48,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',);