]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
vg-in-place: made sure that soft links to this script work fine too.
authorBart Van Assche <bvanassche@acm.org>
Thu, 3 Feb 2011 17:49:07 +0000 (17:49 +0000)
committerBart Van Assche <bvanassche@acm.org>
Thu, 3 Feb 2011 17:49:07 +0000 (17:49 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11521

vg-in-place

index a49036de996515fdf78e4505f827a6d403230e9c..b364c10dba55ee75549663561e03e472c276d2c3 100755 (executable)
@@ -4,6 +4,9 @@
 # $0 (the name of the file) and $PWD.
 
 dollarzero=$0
+if [ -h "${dollarzero}" ]; then
+   dollarzero=`readlink "${dollarzero}"`
+fi
 
 if [ "${dollarzero#/}" = "${dollarzero}" ];
 then