From: Niki Roo Date: Tue, 10 Apr 2018 07:13:56 +0000 (+0200) Subject: Fix img2aa, add justify wrappers X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=3cde28f95e0a0a31722ce457c7ffb6a71e21f2ee;p=fanfix-jexer.git Fix img2aa, add justify wrappers --- diff --git a/img2aa b/img2aa index e689894..8e5db09 100755 --- a/img2aa +++ b/img2aa @@ -1,3 +1,19 @@ #!/bin/sh -exec nikiroo-utils be.nikiroo.utils.main.img2aa "$@" +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.img2aa "$@" 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 "$@" +