File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ echo "Checking for sundials repository..."
3030
3131if [ -d " $FIREMODELS /sundials" ]; then
3232 echo " Sundials repository exists. Building sundials library."
33+ echo " Checking out version 6.7.0"
34+ cd $FIREMODELS /sundials
35+ $( git checkout v6.7.0)
36+
3337 mkdir $FIREMODELS /sundials/BUILDDIR
3438 cd $FIREMODELS /sundials/BUILDDIR
3539
@@ -38,10 +42,14 @@ if [ -d "$FIREMODELS/sundials" ]; then
3842 mkdir $FIREMODELS /libs/sundials/$SUNDIALS_VERSION
3943
4044 echo " Cleaning sundials repository..."
41- rm -r *
45+ rm -r $FIREMODELS /sundials/BUILDDIR/ *
4246 cp $FIREMODELS /fds/Build/Scripts/SUNDIALS/$CONFMAKE .
4347 ./$CONFMAKE
4448
49+ # get back from detached HEAD state
50+ cd $FIREMODELS /sundials
51+ $( git checkout main)
52+
4553 cd $dir
4654 export SUNDIALS_HOME=$FIREMODELS /libs/sundials/$SUNDIALS_VERSION
4755 echo " Sundials library:" $FIREMODELS /libs/sundials/$SUNDIALS_VERSION
You can’t perform that action at this time.
0 commit comments