source: issm/trunk/externalpackages/scotch/install-6.0-linux-parallel-static.sh@ 24686

Last change on this file since 24686 was 24686, checked in by Mathieu Morlighem, 5 years ago

merged trunk-jpl and trunk for revision 24684

File size: 851 bytes
Line 
1#!/bin/bash
2set -eu
3
4
5## NOTE: This install script uses make directly rather than CMake and then make
6
7## Constants
8#
9PKG="scotch"
10VER="6.0.9"
11
12# Download source
13$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/${PKG}_${VER}.tar.gz" "${PKG}_${VER}.tar.gz"
14
15# Unpack source
16tar -zxvf ${PKG}_${VER}.tar.gz
17
18# Cleanup
19rm -rf install src
20mkdir install install/include install/lib src
21
22# Move source to 'src' directory
23mv ${PKG}_${VER}/* src
24rm -rf ${PKG}_${VER}
25
26# Copy customized source and config files to 'src' directory
27cp configs/6.0/linux/Makefile.inc.linux-parallel-static src/src/Makefile.inc
28
29# Compile
30cd src/src
31if [ $# -eq 0 ]; then
32 make ptscotch
33 make ptesmumps
34else
35 make -j $1 ptscotch
36 make -j $1 ptesmumps
37fi
38
39# Install
40cd ../..
41cp src/include/* install/include
42cp src/lib/lib*.* install/lib
Note: See TracBrowser for help on using the repository browser.