bart | 004dc0b | 2008-04-27 07:42:52 +0000 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
njn | 7bbc8d6 | 2007-02-19 04:09:24 +0000 | [diff] [blame] | 3 | # This ensures it works when invoked from any directory. |
bart | 5b16147 | 2008-11-04 17:49:58 +0000 | [diff] [blame^] | 4 | d="`dirname $0`" |
5 | if [ "$d" = "." ]; then | ||||
6 | d="$PWD" | ||||
7 | fi | ||||
njn | 7bbc8d6 | 2007-02-19 04:09:24 +0000 | [diff] [blame] | 8 | |
njn | a7a16eb | 2007-02-19 04:16:09 +0000 | [diff] [blame] | 9 | # We set both VALGRIND_LIB and VALGRIND_LIB_INNER to handle normal and |
10 | # 'inner' builds. | ||||
bart | 5b16147 | 2008-11-04 17:49:58 +0000 | [diff] [blame^] | 11 | VALGRIND_LIB="$d/.in_place" \ |
12 | VALGRIND_LIB_INNER="$d/.in_place" \ | ||||
13 | "$d/coregrind/valgrind" "$@" | ||||
njn | 7bbc8d6 | 2007-02-19 04:09:24 +0000 | [diff] [blame] | 14 |