Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Bash Profile

The preparation of the environment is usually a very easy task.

Before Installing ACS

Before the installation, you would load up the environment using:

Code Block
languagebash
source <repo-path>/ACS/LGPL/acsBUILD/config/.acs/.bash_profile.acs

After Installing ACS

After the version is installed, you would have to load the environment from the installed ACS version:

Code Block
languagebash
source /alma/ACS-<version>/ACSSW/config/.acs/.bash_profile.acs

This needs to be done in every console that is going to be used for working with ACS.

Persistent Configuration

Users Profile

If the environment is going to be used constantly for ACS development (testing or even production), you could simply add this line to the user's ~/.bash_profile or ~/.bashrc file, so it will be available each time a console is opened.

Aliases

Another alternative is to prepare aliases that load different ACS releases. For instance:

Code Block
languagebash
title.bashrc excerpt
alias acs='source ~/.profs/.acs'


Code Block
languagebash
title~/.profs/.acs
if [ "$1" == "" ]; then
    #Default ACS version
    source /alma/ACS-2020FEB/ACSSW/config/.acs/.bash_profile.acs -r
else
    if [ -e $WORK/branches/$1 ]; then
        source /alma/ACS-$1/ACSSW/config/.acs/.bash_profile.acs -r
    else
        echo "Branch $1 not available. List of available branches is:"
        for i in $(ls -d /alma/ACS-*); do
            echo -e "\t$i"
        done
    fi
fi


Code Block
languagebash
titleConsole
#Load default ACS environment
acs
#Load specific ACS version
acs 2020APR