#!/bin/bash
LIBS="/usr/share/tigase-server/lib /usr/share/openfire/lib"
for DIR in $LIBS; do CLASSPATH="`ls -d $DIR/*.jar 2>/dev/null | grep -v groovy | tr '\n' :`$CLASSPATH"; done
export CLASSPATH
#echo $CLASSPATH
exec ${0/%.sh/.groovy}

#!/bin/bash
LIBS="/usr/share/tigase-server/lib /usr/share/openfire/lib"

# Locale check
if ! locale | grep -iq '^LC_CTYPE=.*\.utf8.\?$'; then
	echo "You need to set UTF8 based locale first" >&2; exit 1
fi

for DIR in $LIBS; do CLASSPATH="`ls -d $DIR/*.jar 2>/dev/null | grep -v groovy | tr '\n' :`$CLASSPATH"; done
export CLASSPATH
#echo $CLASSPATH
exec ${0/%.sh/.groovy}

Check for UTF8 based locale.
Check for UTF8 based locale.

git-svn-id: 4a0daf30c0bbd291b3bc5fe8f058bf11ee523347@1613 7d282ba1-3ae6-0310-8f9b-c9008a0864d2
