Commit 4caa6262 by Doug Evans

* configure.lang: Fix building of .gdbinit for oldstyle lang subdirs.

From-SVN: r14629
parent bc28c45b
...@@ -27,7 +27,7 @@ savesrcdir=$srcdir ...@@ -27,7 +27,7 @@ savesrcdir=$srcdir
for subdir in . $oldstyle_subdirs for subdir in . $oldstyle_subdirs
do do
# We only want to do this in language subdirs, but we have to handle # We only want to do this in language subdirs, but we have to handle
# the case of $subdirs = "". # the case of $oldstyle_subdirs = "".
if [ $subdir = . ] if [ $subdir = . ]
then then
continue continue
...@@ -69,17 +69,12 @@ do ...@@ -69,17 +69,12 @@ do
rm -f .gdbinit rm -f .gdbinit
echo "dir ." > .gdbinit echo "dir ." > .gdbinit
echo "dir ${srcdir}" >> .gdbinit echo "dir ${srcdir}" >> .gdbinit
echo "dir ${mainsrcdir}" >> .gdbinit
if [ x$gdb_needs_out_file_path = xyes ] if [ x$gdb_needs_out_file_path = xyes ]
then then
echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit echo "dir ${mainsrcdir}/config/"`dirname ${out_file}` >> .gdbinit
fi fi
if [ "x$subdirs" != x ]; then echo "source ${mainsrcdir}/.gdbinit" >> .gdbinit
for s in $subdirs
do
echo "dir ${srcdir}/$s" >> .gdbinit
done
fi
echo "source ${srcdir}/.gdbinit" >> .gdbinit
;; ;;
esac esac
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment