File: imagemagick-7-common.bug-script

package info (click to toggle)
imagemagick 8%3A7.1.2.3%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 86,336 kB
  • sloc: ansic: 373,543; cpp: 22,660; xml: 11,570; sh: 6,618; perl: 6,285; makefile: 3,498; tcl: 459
file content (33 lines) | stat: -rw-r--r-- 614 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh

set -e

# Pretty echo, underline the specified string:
pecho() {
    echo "$@"
    echo "$@"|sed 's/./-/g'
}

# work even with graphicsmagick
# will detect graphickmagick using as compat
versioncheck() {
    if test -x "/usr/bin/$@"; then
	echo -n "$@: ";
	"$@" -version 2> /dev/null | head -1 | sed s/Version://g;
    fi
}

exec >&3

pecho "ImageMagick program version"
versioncheck animate
versioncheck compare
versioncheck convert
versioncheck composite
versioncheck conjure
versioncheck display
versioncheck identify
versioncheck import
versioncheck mogrify
versioncheck montage
versioncheck stream