+dir=${0%/*}/Cycript.lib
+if [[ ${dir} != /* ]]; then
+ dir=$(pwd)/${dir}
+fi
+
+if [[ -n $ANDROID_ROOT ]]; then
+ export LD_LIBRARY_PATH="${dir}"
+ export TERMINFO="${dir}"
+ export TERM=linux
+ suffix=-a32
+else
+ export DYLD_LIBRARY_PATH=${dir}
+ suffix=-apl
+fi
+
+exec "${dir}"/cycript"${suffix}" "$@"