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
|
Rev | Line | |
---|
[25706] | 1 | #!/bin/bash
|
---|
| 2 | set -eu
|
---|
| 3 |
|
---|
| 4 |
|
---|
[28013] | 5 | ## Constants
|
---|
| 6 | #
|
---|
| 7 | PREFIX="${ISSM_DIR}/externalpackages/valgrind/install" # Set to location where external package should be installed
|
---|
| 8 |
|
---|
[25706] | 9 | # Clean up
|
---|
[28013] | 10 | rm -rf ${PREFIX} src
|
---|
[25706] | 11 |
|
---|
[28013] | 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
|
---|
[25706] | 15 |
|
---|
| 16 | # Configure
|
---|
[28013] | 17 | cd src
|
---|
[25706] | 18 | ./autogen.sh
|
---|
| 19 | ./configure \
|
---|
[28013] | 20 | --prefix="${PREFIX}" \
|
---|
[25706] | 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.