source: git/lib/icons/xpm2png

Last change on this file was 2d965af, checked in by Olly Betts <olly@…>, 7 weeks ago

Use better temporary file names

We weren't setting t before, so the temporary files used were
named .pbm, etc.

  • Property mode set to 100755
File size: 199 bytes
Line 
1#!/bin/sh
2set -e
3t=.tmp.$$
4xpmtoppm -alphaout="$t.pbm" "$1" > "$t.pnm"
5pnmcomp -alpha="$t.pbm" "$t.pnm" "$t.pbm" "$t.2.pnm"
6pnmtopng -alpha "$t.pbm" "$t.2.pnm" > "$2"
7rm "$t.pnm" "$t.pbm" "$t.2.pnm"
Note: See TracBrowser for help on using the repository browser.