Skip to content

Commit

Permalink
add convenience script for running herbgrind
Browse files Browse the repository at this point in the history
  • Loading branch information
ztatlock committed Dec 20, 2017
1 parent e674627 commit ce58456
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions herbgrind.sh
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

# exit on error
set -e

# determine physical directory of this script
src="${BASH_SOURCE[0]}"
while [ -L "$src" ]; do
dir="$(cd -P "$(dirname "$src")" && pwd)"
src="$(readlink "$src")"
[[ $src != /* ]] && src="$dir/$src"
done
MYDIR="$(cd -P "$(dirname "$src")" && pwd)"

HG="$MYDIR/valgrind/herbgrind-install/bin/valgrind --tool=herbgrind"

$HG "$@"

0 comments on commit ce58456

Please sign in to comment.