11@ echo off
2- set INSTALLDIR = sundials- 6.7.0
3- set SUNDIALSVERSION = v6.7.0
2+ set SUNDIALSVERSION = 6.7.0
3+ set SUNDIALSTAG = v6.7.0
44
55call :getopts %*
66if %stopscript% == 1 exit /b
@@ -31,11 +31,15 @@ cd %CURDIR%
3131
3232set LIBS = %FIREMODELS% \libs
3333if not exist %LIBS% mkdir %LIBS%
34- if not exist %LIBS% echo failed to create LIBS directory
34+ if not exist %LIBS% echo failed to create % LIBS% directory
3535if not exist %LIBS% exit
36+
3637cd %LIBS%
38+ if not exist %LIBS% \sundials mkdir %LIBS% \sundials
39+ if not exist %LIBS% \sundials echo failed to create %LIBS% \sundials directory
40+ if not exist %LIBS% \sundials exit
3741set LIBS = %CD%
38- set INSTALLDIR = %LIBS% \%INSTALLDIR %
42+ set INSTALLDIR = %LIBS% \sundials\ %SUNDIALSVERSION %
3943cd %CURDIR%
4044
4145
@@ -55,11 +59,11 @@ echo.
5559 cd sundials
5660echo ----------------------------------------------------------
5761echo ----------------------------------------------------------
58- echo checking out version %SUNDIALSVERSION %
62+ echo checking out version %SUNDIALSTAG %
5963echo ----------------------------------------------------------
6064echo ----------------------------------------------------------
6165echo .
62- git checkout %SUNDIALSVERSION %
66+ git checkout %SUNDIALSTAG %
6367 cd %CURDIR%
6468:endif1
6569
@@ -81,7 +85,7 @@ cd %BUILDDIR%
8185:: configure sundials
8286echo ----------------------------------------------------------
8387echo ----------------------------------------------------------
84- echo configuring sundials version %SUNDIALSVERSION %
88+ echo configuring sundials version %SUNDIALSTAG %
8589echo ----------------------------------------------------------
8690echo ----------------------------------------------------------
8791echo .
@@ -104,15 +108,15 @@ cmake ..\ ^
104108:: build and install sundials
105109echo ----------------------------------------------------------
106110echo ----------------------------------------------------------
107- echo building sundials version %SUNDIALSVERSION %
111+ echo building sundials version %SUNDIALSTAG %
108112echo ----------------------------------------------------------
109113echo ----------------------------------------------------------
110114echo .
111115call make
112116
113117echo ----------------------------------------------------------
114118echo ----------------------------------------------------------
115- echo installing sundials version %SUNDIALSVERSION % in %INSTALLDIR%
119+ echo installing sundials version %SUNDIALSTAG % in %INSTALLDIR%
116120echo ----------------------------------------------------------
117121echo ----------------------------------------------------------
118122echo .
@@ -139,7 +143,7 @@ echo.
139143
140144echo ----------------------------------------------------------
141145echo ----------------------------------------------------------
142- echo sundials version %SUNDIALSVERSION % installed in %INSTALLDIR%
146+ echo sundials version %SUNDIALSTAG % installed in %INSTALLDIR%
143147echo ----------------------------------------------------------
144148echo ----------------------------------------------------------
145149echo .
0 commit comments