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