|
From: <sv...@va...> - 2008-11-04 17:50:08
|
Author: bart Date: 2008-11-04 17:49:58 +0000 (Tue, 04 Nov 2008) New Revision: 8729 Log: Make sure that $d is always an absolute path, even if vg-in-place has been started without specifying a path. Furthermore, vg-in-place now also works when started from a path containing spaces. Modified: trunk/vg-in-place Modified: trunk/vg-in-place =================================================================== --- trunk/vg-in-place 2008-11-04 17:42:00 UTC (rev 8728) +++ trunk/vg-in-place 2008-11-04 17:49:58 UTC (rev 8729) @@ -1,11 +1,14 @@ #!/bin/sh # This ensures it works when invoked from any directory. -d=`dirname $0` +d="`dirname $0`" +if [ "$d" = "." ]; then + d="$PWD" +fi # We set both VALGRIND_LIB and VALGRIND_LIB_INNER to handle normal and # 'inner' builds. -VALGRIND_LIB=$d/.in_place \ - VALGRIND_LIB_INNER=$d/.in_place \ - $d/coregrind/valgrind "$@" +VALGRIND_LIB="$d/.in_place" \ + VALGRIND_LIB_INNER="$d/.in_place" \ + "$d/coregrind/valgrind" "$@" |