git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
803fc29
)
termcol: ignore duplicate xcolor palettes
author
Mischa POSLAWSKY
<perl@shiar.org>
Sat, 12 Nov 2016 01:51:47 +0000
(
02:51
+0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Wed, 22 Mar 2017 21:28:04 +0000
(22:28 +0100)
tools/mktermcol-xcolor
patch
|
blob
|
history
diff --git
a/tools/mktermcol-xcolor
b/tools/mktermcol-xcolor
index 615bff28676e79e2b8e4ab3cb9a64c2f5959f1fd..596bb56d82789a8defde29e7a970048dff474c7b 100755
(executable)
--- a/
tools/mktermcol-xcolor
+++ b/
tools/mktermcol-xcolor
@@
-6,6
+6,7
@@
use Shiar_Sheet::Colour 1.05;
say 'use strict;';
say '+{';
my @names;
+my %seen;
for my $path (@ARGV) {
open my $theme, '<', $path or do {
@@
-40,6
+41,11
@@
for my $path (@ARGV) {
$huesum > 3 or next; # require number of significant hue changes
#TODO tweak to include good-pants, exclude cheesecake-*
+ if ($seen{"@pal"}++) {
+ warn "ignore duplicate palette $name\n";
+ next;
+ }
+
say qq("$name" => {);
say qq(\ttitle => '$name',);
say qq(\tparent => 'cga',);