source: git/lib/icons/xpm2png @ 186ddea

Last change on this file since 186ddea 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
RevLine 
[b4f28e0]1#!/bin/sh
2set -e
[2d965af]3t=.tmp.$$
[b4f28e0]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.