File: ivtiftopnm.bash

package info (click to toggle)
ivtools 1.1.3-5.3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 15,868 kB
  • ctags: 42,882
  • sloc: ansic: 164,124; makefile: 36,987; cpp: 15,132; xml: 5,359; sh: 2,622
file content (18 lines) | stat: -rw-r--r-- 323 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
#
# ivtiftopnm [file]
#
# bash script to wrap tifftopnm which can't handle stdin
#
# Parameters:
#     $1 optional tiff image filename
#
case "$#" in 
        0)      tempfile=`tmpnam`
		cat >$tempfile
		tifftopnm $tempfile
		rm $tempfile
                ;;
        *)      tifftopnm $1
                ;;
esac