perl: mention breaking changes and feature removals
[sheet.git] / tools / mktermcol-xcolor
index 4dba0bc8724486631775ab91ad6a5bbc2f09e8b5..c59b7312150ad163228069163583243044450790 100755 (executable)
@@ -1,8 +1,10 @@
 #!/usr/bin/env perl
 use 5.014;
-
+use warnings;
+use lib $0 =~ s{[^/]+$}{..}r; # project root
 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',);