Last change
on this file was
2d965af,
checked in by Olly Betts <olly@…>, 15 months 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 |
---|
2 | set -e |
---|
3 | t=.tmp.$$ |
---|
4 | xpmtoppm -alphaout="$t.pbm" "$1" > "$t.pnm" |
---|
5 | pnmcomp -alpha="$t.pbm" "$t.pnm" "$t.pbm" "$t.2.pnm" |
---|
6 | pnmtopng -alpha "$t.pbm" "$t.2.pnm" > "$2" |
---|
7 | rm "$t.pnm" "$t.pbm" "$t.2.pnm" |
---|
Note: See
TracBrowser
for help on using the repository browser.