move all generated includes into data/
[sheet.git] / tools / mktermcol-xcolor
index 4dba0bc8724486631775ab91ad6a5bbc2f09e8b5..7f39c80c4ca6332805c108d80c0c362da8c24623 100755 (executable)
@@ -3,6 +3,7 @@ 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',);