API compat
[fanfix.git] / img2aa
1 #!/bin/sh
2 NAME=nikiroo-utils.jar
3
4 jar="$NAME"
5 if [ ! -e "$jar" ]; then
6 jar="`dirname "$0"`/$NAME"
7 fi
8
9 if [ ! -e "$jar" ]; then
10 jar="`whereis "$NAME" | sed 's: :\n:g' | grep "$NAME" | head -n1`"
11 fi
12
13 if [ ! -e "$jar" ]; then
14 echo "$NAME not found." >&2
15 exit 1
16 fi
17
18 exec java -cp "$jar" be.nikiroo.utils.main.img2aa "$@"
19