Minor translation updates
[survex.git] / lib / icons / png2winicon
blob7afc4d7759e45d6595f0df6b1ab8758b15557cfc
1 #!/bin/sh
2 set -e
3 t=.tmp.$$
4 pngtopnm "$1" > "$t.pnm"
5 pngtopnm -alpha "$1" | pgmtopbm -threshold > "$t.pbm"
6 pnmcomp -alpha="$t.pbm" "$t.pnm" "$t.pbm" "$t.2.pnm"
7 ppmtowinicon -andppms "$t.2.pnm" "$t.pbm" > "$2"
8 rm "$t.pnm" "$t.pbm" "$t.2.pnm"