Skip to content

Commit

Permalink
* Fixing issue where someone was setting GAMS_ROOT to be INSTALL_DIR …
Browse files Browse the repository at this point in the history
…when it should be GAMS_ROOT=INSTALL_DIR/gams by default
  • Loading branch information
jredmondson committed Oct 7, 2021
1 parent f9ec31c commit 7775fce
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions scripts/linux/base_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1750,15 +1750,8 @@ if [ $GAMS -eq 1 ] || [ $GAMS_AS_A_PREREQ -eq 1 ]; then

# build GAMS
if [ -z $GAMS_ROOT ] ; then
# Update Mar 6 2020: If the current directory is named gams, then it will not reinstall a new GAMS as it currently does. That caused problems when developing from any other repo than https://github.com/jredmondson/gams
CUR_DUR_NAME=${PWD##*/}
if [ ! "gams" -eq $CUR_DUR_NAME ]; then
export GAMS_ROOT=$INSTALL_DIR/gams
echo "SETTING GAMS_ROOT to $GAMS_ROOT"
else
export GAMS_ROOT=$INSTALL_DIR
echo "SETTING GAMS_ROOT to $GAMS_ROOT"
fi
export GAMS_ROOT=$INSTALL_DIR/gams
echo "SETTING GAMS_ROOT to $GAMS_ROOT"
fi

if [ ! -d $GAMS_ROOT ] ; then
Expand Down

0 comments on commit 7775fce

Please # to comment.