#!/bin/bash if ! [ -z "${_OLD_ATLAS_PATH:+_}" ] ; then deactivate fi ATLAS_VER=%ATLAS_VER% ATLAS_MAVEN_VER=%MAVEN_VER% _OLD_ATLAS_PATH=${PATH} _OLD_ATLAS_PS1=${PS1} ATLAS_HOME="/opt/atlassian-plugin-sdk/${ATLAS_VER}" deactivate() { if ! [ -z "${_OLD_ATLAS_PATH:+_}" ] ; then PATH="${_OLD_ATLAS_PATH}" export PATH unset _OLD_ATLAS_PATH fi if ! [ -z "${_OLD_ATLAS_PS1+_}" ] ; then PS1="${_OLD_ATLAS_PS1}" export PS1 unset _OLD_ATLAS_PS1 fi unset ATLAS_VER unset ATLAS_MAVEN_VER unset ATLAS_HOME hash -r 2>/dev/null } PATH=${ATLAS_HOME}/bin:${ATLAS_HOME}/apache-maven-${ATLAS_MAVEN_VER}/bin:$PATH export ATLAS_HOME export PATH hash -r 2>/dev/null PS1="(atl-sdk ${ATLAS_VER}) ${PS1-}"