...
~/gem/v_5.1.1/Abs/...
Set a variable that we will use later and create the directoryFor example:
abs_dir= mkdir -p ~/gem/v_5.1.1/Abs/My_Abs # Set 'My_Abs' to whatever you like
mkdir -p ${abs_dir}. But make sure to give every executable directory a different name.
2) Populate directory
Go into the executable directory you just created above. For example:
cd ${abs_dir}~/gem/v_5.1.1/Abs/My_Abs
a) Clone the Git repository you want
...
work_space=~/projects/def-professor/${USER}/GEM_WORK_DIR # Set 'professor' to the CC name of your professor. You can find all of them under ~/projects.
Set the variable 'base_dir' to the basename (just the last part) of your executable directory. For example:
base_dir=$( basename $(pwd) )
Create the directories and the links:
mkdir -p ${work_space}/${absbase_dir##*/}/build
mkdir -p ${work_space}/${absbase_dir##*/}/work
ln -s ${work_space}/${absbase_dir##*/}/build
ln -s ${work_space}/${absbase_dir##*/}/work
3) Create the executables
...