This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/21465] Installing scripts in auto-load scripts-directory
- From: "dilyan.palauzov at aegee dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sun, 07 May 2017 00:45:14 +0000
- Subject: [Bug gdb/21465] Installing scripts in auto-load scripts-directory
- Auto-submitted: auto-generated
- References: <bug-21465-4717@http.sourceware.org/bugzilla/>
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.