#! /bin/sh platypus_par_dir=`dirname ${0}` res_dir=`dirname ${platypus_par_dir}` contents_dir=`dirname ${res_dir}` dot_app_bundle=`dirname ${contents_dir}` export CIPRES_ROOT="${dot_app_bundle}/CIPRES-Root" if ! test -d "${CIPRES_ROOT}" then echo "${CIPRES_ROOT} does not exist." echo "a CIPRES-Root directory must be next to ${dot_app_bundle}" exit 1 fi source "${CIPRES_ROOT}/share/cipres/cipres.bashrc" /bin/sh ${CIPRES_ROOT}/bin/install_service.sh exit 0