X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/ede7dd9ecdc525c8323ea16805f983786fb00c1a..6d6acaf88addddc7bc7477ccbf3a70804ffa4e9f:/tools/mktermcol-xcolor diff --git a/tools/mktermcol-xcolor b/tools/mktermcol-xcolor index f731e5a..112dd83 100755 --- a/tools/mktermcol-xcolor +++ b/tools/mktermcol-xcolor @@ -7,8 +7,11 @@ say 'use strict;'; say '+{'; my @names; -for my $path (glob 'data/xcolors/themes/*') { - open my $theme, '<', $path; +for my $path (@ARGV) { + open my $theme, '<', $path or do { + warn "could not open $path: $!\n"; + next; + }; (my $name = $path) =~ s{.*/}{}; # basename my (%pal, @pal);