Last change
on this file since 27466 was 25812, checked in by jmt12, 12 years ago |
Adding conditional blocks so that packages are only rebuilt if they missing from the install directory
|
-
Property svn:executable
set to
*
|
File size:
928 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | package=openmpi
|
---|
4 | version=-1.4.3
|
---|
5 |
|
---|
6 | progname=$0
|
---|
7 |
|
---|
8 | source ../cascade-make/lib/cascade-lib.bash GEXTPARALLELBUILDING ../.. $*
|
---|
9 |
|
---|
10 | prefix=$GEXTPARALLELBUILDING_INSTALLED
|
---|
11 |
|
---|
12 | opt_run_untar $force_untar $auto_untar $package $version
|
---|
13 | opt_run_configure $force_config $auto_config $package $version $prefix
|
---|
14 |
|
---|
15 | # We only compile if necessary, as compilation is quite slow and we don't
|
---|
16 | # edit these source files
|
---|
17 | if [[ ! -e "$GEXTPARALLELBUILDING_INSTALLED/lib/libmpi.so" || ! -e "$GEXTPARALLELBUILDING_INSTALLED/bin/mpic++" || ! -e "$GEXTPARALLELBUILDING_INSTALLED/bin/mpirun" ]]
|
---|
18 | then
|
---|
19 | opt_run_make $compile $package $version
|
---|
20 | opt_run_make $install $package $version "install"
|
---|
21 | else
|
---|
22 | echo "Open MPI library and binaries already compiled => no need to recompile"
|
---|
23 | fi
|
---|
24 |
|
---|
25 | opt_run_make $clean $package $version "clean"
|
---|
26 | opt_run_make $distclean $package $version "distclean"
|
---|
27 |
|
---|
28 | opt_run_tarclean $tarclean $package $version
|
---|
29 |
|
---|
30 |
|
---|
31 |
|
---|
32 |
|
---|
33 |
|
---|
34 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.