repo.or.cz
/
survex.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Refactor handling of relocatable installs
[survex.git]
/
src
/
png2winicon
blob
42fd46d202405031d09f6f289bba433c71133de3
1
#!/bin/sh
2
t
=/
tmp
/
png2winicon.$$
3
pngtopnm
"
$1
"
>
$t
.pnm
4
#pngtopnm -alpha "$1" | pgmtopbm -threshold | convert -negate pbm:- pbm:$t.pbm
5
pngtopnm
-alpha
"
$1
"
| pgmtopbm
-threshold
>
$t
.pbm
6
ppmtowinicon
-andppms
$t
.pnm
$t
.pbm
>
"
$2
"
7
rm
$t
.pnm
$t
.pbm