File: cli-convert-examples

package info (click to toggle)
libwmf 0.2.14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,540 kB
  • sloc: ansic: 53,534; sh: 712; makefile: 597; perl: 140
file content (21 lines) | stat: -rwxr-xr-x 325 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e

ret=0
i=0

for wmf in examples/*.wmf; do
    for cmd in wmf2eps wmf2fig wmf2gd wmf2svg; do
        i=$(($i+1))
        result=ok
        if ! "$cmd" -o /dev/null "$wmf"; then
            result="not ok"
            ret=1
        fi
        echo "$result $i $cmd $wmf"
    done
done

echo "1..$i"
exit $ret