-
Notifications
You must be signed in to change notification settings - Fork 631
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13682 from gforney/master
modify the windows sundials and hypre build scripts so they are consistent with the linux/osx build scripts
- Loading branch information
Showing
11 changed files
with
185 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
@echo off | ||
|
||
set clean_hypre= | ||
set clean_sundials= | ||
set FDS_BUILDDIR=%CD% | ||
|
||
call :getopts %* | ||
if %stopscript% == 1 exit /b | ||
|
||
|
||
goto eof | ||
|
||
:: ------------------------------------------------------------- | ||
:getopts | ||
:: ------------------------------------------------------------- | ||
set stopscript=0 | ||
if (%1)==() exit /b | ||
set valid=0 | ||
set arg=%1 | ||
if /I "%1" EQU "--clean-hypre" ( | ||
set clean_hypre=--clean-hypre | ||
set valid=1 | ||
) | ||
if /I "%1" EQU "bot" ( | ||
set valid=1 | ||
) | ||
if /I "%1" EQU "--clean-sundials" ( | ||
set clean_sundials=--clean-sundials | ||
set valid=1 | ||
) | ||
if /I "%1" EQU "--clean-all" ( | ||
set clean_hypre=--clean-hypre | ||
set clean_sundials=--clean-sundials | ||
set valid=1 | ||
) | ||
if /I "%1" EQU "-help" ( | ||
call :usage | ||
set stopscript=1 | ||
exit /b | ||
) | ||
shift | ||
if %valid% == 0 ( | ||
echo. | ||
echo ***Error: the input argument %arg% is invalid | ||
echo. | ||
echo Usage: | ||
call :usage | ||
set stopscript=1 | ||
exit /b | ||
) | ||
if not (%1)==() goto getopts | ||
exit /b | ||
|
||
:: ------------------------------------------------------------- | ||
:usage | ||
:: ------------------------------------------------------------- | ||
echo build 3rd party libraries | ||
echo. | ||
echo --clean-all - rebuild all libraries | ||
echo --clean-hypre - rebuild hypre library | ||
echo --clean-sundials - rebuild sundials library | ||
echo -help - display this message | ||
exit /b | ||
|
||
:eof | ||
|
||
set CURDIR_3RDPARTY=%CD% | ||
set SCRIPTDIR=%~dp0 | ||
cd %SCRIPTDIR% | ||
SET SCRIPTDIR=%CD% | ||
|
||
cd %SCRIPTDIR%\HYPRE | ||
call build_hypre %clean_hypre% | ||
|
||
cd %SCRIPTDIR%\SUNDIALS | ||
call build_sundials %clean_sundials% | ||
|
||
cd %CURDIR_3RDPARTY% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.