-
Notifications
You must be signed in to change notification settings - Fork 0
/
CLEAN_ALL.bat
76 lines (68 loc) · 1.97 KB
/
CLEAN_ALL.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
@echo off
:: Choose PLATFORM
::IF %MACHINE%==JENKINS (
set WORKINGDIR=%cd%
set "PATH=%PATH%C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;C:\cygwin64\bin;C:\cygwin\bin;"
::set "WORKINGDIR=C:\Program Files (x86)\Jenkins\jobs\BoSSS-native\workspace"
::)
::IF %MACHINE%==HOME (
::set "PATH=%PATH%C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;C:\cygwin\bin;"
::set WORKINGDIR=C:\BoSSS-native
::)
:: directories
SET "MUMPS_THIRDPARTY=%WORKINGDIR%\MUMPS_5.0.2"
SET "MUMPS_BUILD=%WORKINGDIR%\MUMPS-VS"
SET "MUMPS_CONFIG=%WORKINGDIR%\dmumps-config"
SET "PARDISO_CONFIG=%WORKINGDIR%\pardiso-config"
SET "PARDISO_BUILD=%WORKINGDIR%\PARDISO"
SET "BLAS_LAPACK_CONFIG=%WORKINGDIR%\blas_lapack-config"
SET "BLAS_LAPACK_BUILD=%WORKINGDIR%\BLAS_LAPACK"
SET "METIS_THIRDPARTY=%WORKINGDIR%\metis-5.1.0"
SET "METIS_CONFIG=%WORKINGDIR%\metis-seq-config"
SET "METIS_BUILD=%METIS_THIRDPARTY%\build\windows"
SET "HYPRE_CONFIG=%WORKINGDIR%\hypre-config"
SET "HYPRE_THIRDPARTY=%WORKINGDIR%\hypre-2.11.2"
SET "HYPRE_BUILD=%WORKINGDIR%\hypre-2.11.2\src\cmbuild"
SET /P var= clean PARDISO ... <nul
(
cd "%PARDISO_BUILD%"
rmdir x64 /s /q
)>nul 2>&1
echo done.
SET /P var= clean MUMPS ... <nul
(
CD "%MUMPS_THIRDPARTY%"
CALL make clean
DEL "Makefile.inc" /q
rmdir "%MUMPS_BUILD%\x64" /s /q
)>nul 2>&1
echo done.
SET /P var= clean METIS ... <nul
rmdir "%METIS_BUILD%" /s /q >nul 2>&1
echo done.
SET /P var= clean BLAS and LAPACK ... <nul
(
cd "%BLAS_LAPACK_BUILD%"
rmdir x64 /s /q
)>nul 2>&1
echo done.
SET /P var= clean HYPRE ... <nul
(
cd "%HYPRE_BUILD%"
CALL msbuild HYPRE-MPI.proj /target:Clean
rmdir x64 /s /q
rmdir "HYPRE.dir" /s /q
rmdir Release /s /q
)>nul 2>&1
echo done.
cd %WORKINGDIR%
SET /P var= clean Working directory ... <nul
(
del "PropertySheet.props" /q >nul 2>&1
del variables.txt /q
del changelog.txt /q
del addpath.txt /q
rmdir "BUILDS" /q /s
del log.txt /q
)>nul 2>&1
echo done.