source: issm/trunk/externalpackages/valgrind/install-linux.sh

Last change on this file was 28013, checked in by Mathieu Morlighem, 17 months ago

merged trunk-jpl and trunk for revision 28011

  • Property svn:executable set to *
File size: 531 bytes
Line 
1#!/bin/bash
2set -eu
3
4
5## Constants
6#
7PREFIX="${ISSM_DIR}/externalpackages/valgrind/install" # Set to location where external package should be installed
8
9# Clean up
10rm -rf ${PREFIX} src
11
12# Download development version (the current release never supports the latest
13# OS X releases)
14git clone git://sourceware.org/git/valgrind.git src
15
16# Configure
17cd src
18./autogen.sh
19./configure \
20 --prefix="${PREFIX}" \
21 --enable-only64bit
22
23# Compile and install
24if [ $# -eq 0 ]; then
25 make
26 make install
27else
28 make -j $1
29 make install -j $1
30fi
Note: See TracBrowser for help on using the repository browser.