aboutsummaryrefslogtreecommitdiff
path: root/icons/cicon.pl
diff options
context:
space:
mode:
Diffstat (limited to 'icons/cicon.pl')
-rwxr-xr-xicons/cicon.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/icons/cicon.pl b/icons/cicon.pl
index 3578bd3..a9f214e 100755
--- a/icons/cicon.pl
+++ b/icons/cicon.pl
@@ -5,12 +5,13 @@
$k = 0;
@xpms = ();
+$convert = shift @ARGV;
foreach $f (@ARGV) {
# XPM format is generated directly by ImageMagick, so that's easy
# enough. We just have to adjust the declaration line so that it
# has the right name, linkage and storage class.
@lines = ();
- open XPM, "convert $f xpm:- |";
+ open XPM, "-|", $convert, $f, "xpm:-";
push @lines, $_ while <XPM>;
close XPM;
die "XPM from $f in unexpected format\n" unless $lines[1] =~ /^static.*\{$/;