source: git/lib/icons/xpm2png @ 2258678

debug-cidebug-ci-sanitisersfaster-cavernloglog-selectwalls-datawalls-data-hanging-as-warningwarn-only-for-hanging-survey
Last change on this file since 2258678 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
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.