X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/fd1a51c00a91edeaa58f460f59664c30b3e19532..00ffc9287b5766ce0c5ff89e1096200a1bc355be:/tools/mktermcol-xcolor diff --git a/tools/mktermcol-xcolor b/tools/mktermcol-xcolor index 596bb56..c705093 100755 --- a/tools/mktermcol-xcolor +++ b/tools/mktermcol-xcolor @@ -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',);