JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
inching towards opengl
[vor.git] / povtex.sh
1 #!/bin/sh
2
3 output="$1"
4 tmpfile="$1.tmp.png"
5 shift
6 povray -D +A +UA -O- +FN $* 2>/dev/null > "$tmpfile" || sh -c "rm '$tmpfile'; false"
7 pngcrush -rem gAMA -rem cHRM -rem iCCP -rem sRGB "$tmpfile" "$output" || sh -c "rm '$tmpfile'; false"
8 rm "$tmpfile"