This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/21465] Installing scripts in auto-load scripts-directory


https://sourceware.org/bugzilla/show_bug.cgi?id=21465

--- Comment #2 from dilyan.palauzov at aegee dot org <dilyan.palauzov at aegee dot org> ---
AC_CHECK_PROG(gdb, gdb, found)
if test $gdb = found; then
  GDB_AUTO_LOAD_SCRIPTS_DIRECTORY=$(gdb -q -ex "show data-directory" -ex "show
auto-load scripts-directory" -ex quit |sed "1d;2{N;s/\n//g;
s/.*\"\(.*\)\".*:\(.*\)./\1 \2/}; /\$datadir/ {s/\(.*\)
\$datadir\(.*\)/\1\2/;q}; s/.* \(.\)/\1/")
else
  GDB_AUTO_LOAD_SCRIPTS_DIRECTORY='${datadir}/gdb/auto-load'
fi
AC_SUBST(GDB_AUTO_LOAD_SCRIPTS_DIRECTORY)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]