]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
gdbserver tests: only create the gdbserver_tests/gdb soft link if ./configure found...
authorBart Van Assche <bvanassche@acm.org>
Sun, 15 May 2011 06:18:24 +0000 (06:18 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sun, 15 May 2011 06:18:24 +0000 (06:18 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11753

gdbserver_tests/make_local_links

index f7291d65a642b09e9801d32685dfd980f4dc6d6e..7ed9a73fde33f1a69cbcd9a448e603099dc7c0a0 100755 (executable)
@@ -10,9 +10,9 @@
 # The vgdb link is needed either for gdb tests
 # or for standalone vgdb tests.
 
-ln -f -s $1 gdbserver_tests/gdb
-if [ -x gdbserver_tests/gdb ]
+if [ -x "$1" ]
 then
+   ln -f -s "$1" gdbserver_tests/gdb
    # Try to extract the gdb version.
    VERSIONLINE=`gdbserver_tests/gdb --version | head -1`
    VERSION=`echo $VERSIONLINE                         |