8 while [ "x$ldp" != x ]; do
13 *) ldp2="$ldp2$this:" ;;
17 if [ "x$ldp2" != x ]; then
18 LD_PRELOAD="${ldp2%:}"
33 lastarg="${args[$(( $nargs - 1 ))]}"
36 echo >&2 "jwrap-script: $*"
40 if [ x"$lastarg" = x"com.threerings.yohoho.client.YoApp" ]; then
43 *) fail "unexpected path format $path" ;;
45 [ x"$JWRAP_EXTDIR" != x ] || fail 'JWRAP_EXTDIR not set'
46 extdirs="$JWRAP_EXTDIR:${path%/bin/java}/lib/ext"
48 set -e$JWRAP_SCRIPT_X -- \
49 -Djavax.accessibility.assistive_technologies=com.tedpearson.ypp.market.MarketUploader \
50 -Djava.ext.dirs="$extdirs" \
56 exec -a "$arg0" /dev/jwrap/bypass "$path" "$@"