Add a script to make running in-place simpler.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6603 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/README_DEVELOPERS b/README_DEVELOPERS
index 9c63e4b..06ed8b0 100644
--- a/README_DEVELOPERS
+++ b/README_DEVELOPERS
@@ -10,6 +10,8 @@
 This allows you to compile and run with "make" instead of "make install",
 saving you time.
 
+Or, you can use the 'vg-in-place' script which does that for you.
+
 I recommend compiling with "make --quiet" to further reduce the amount of
 output spewed out during compilation, letting you actually see any errors,
 warnings, etc.
diff --git a/vg-in-place b/vg-in-place
new file mode 100755
index 0000000..b378119
--- /dev/null
+++ b/vg-in-place
@@ -0,0 +1,7 @@
+# This ensures it works when invoked from any directory.
+d=`dirname $0`
+
+VALGRIND_LIB=$d/.in_place \
+    VALGRIND_LIB_INNER=$d/.in_place \
+    $d/coregrind/valgrind "$@"
+