X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;ds=sidebyside;f=justify;fp=justify;h=8d94a60f9fb9d69ef3016a26066f3f34a928e2b8;hb=3cde28f95e0a0a31722ce457c7ffb6a71e21f2ee;hp=0000000000000000000000000000000000000000;hpb=9e50696ec75e70b4eb592a9a1b6fceacf169977f;p=nikiroo-utils.git diff --git a/justify b/justify new file mode 100755 index 0000000..8d94a60 --- /dev/null +++ b/justify @@ -0,0 +1,19 @@ +#!/bin/sh +NAME=nikiroo-utils.jar + +jar="$NAME" +if [ ! -e "$jar" ]; then + jar="`dirname "$0"`/$NAME" +fi + +if [ ! -e "$jar" ]; then + jar="`whereis "$NAME" | sed 's: :\n:g' | grep "$NAME" | head -n1`" +fi + +if [ ! -e "$jar" ]; then + echo "$NAME not found." >&2 + exit 1 +fi + +exec java -cp "$jar" be.nikiroo.utils.main.justify "$@" +