Remove the pamgdb script, since "libtool exec gdb" does the same job better.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@853 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
parent
8a2e3ce9b6
commit
563ac2d4bb
2 changed files with 0 additions and 42 deletions
|
@ -171,6 +171,5 @@ AC_CONFIG_FILES([
|
||||||
modules/pam_oath/Makefile
|
modules/pam_oath/Makefile
|
||||||
t/Makefile
|
t/Makefile
|
||||||
])
|
])
|
||||||
AC_CONFIG_FILES([pamgdb],[chmod +x pamgdb])
|
|
||||||
AC_CONFIG_FILES([mkpkgng],[chmod +x mkpkgng])
|
AC_CONFIG_FILES([mkpkgng],[chmod +x mkpkgng])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
41
pamgdb.in
41
pamgdb.in
|
@ -1,41 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
# $Id$
|
|
||||||
#
|
|
||||||
|
|
||||||
srcdir="@abs_top_srcdir@"
|
|
||||||
builddir="@abs_top_builddir@"
|
|
||||||
|
|
||||||
# Make sure we get the right version of libpam
|
|
||||||
pam_libdir="${builddir}/lib/.libs"
|
|
||||||
LD_LIBRARY_PATH="${pam_libdir}:${LD_LIBRARY_PATH}"
|
|
||||||
LD_LIBRARY_PATH="${LD_LIBRARY_PATH%:}"
|
|
||||||
export LD_LIBRARY_PATH
|
|
||||||
|
|
||||||
# DWIM, assuming that the first positional argument is the name of the
|
|
||||||
# program to debug rather than a gdb option.
|
|
||||||
prog="$1"
|
|
||||||
if expr "${prog}" : ".*/.*" >/dev/null ; then
|
|
||||||
# The first argument is an absolute or relative path. There
|
|
||||||
# is a good chance that it points to the wrapper script
|
|
||||||
# generated by libtool rather than the actual binary.
|
|
||||||
altprog="${prog%/*}/.libs/${prog##*/}"
|
|
||||||
if [ -x "${altprog}" ] ; then
|
|
||||||
shift
|
|
||||||
set "${altprog}" "$@"
|
|
||||||
fi
|
|
||||||
elif expr "${prog}" : "[a-z.-][a-z.-]*" >/dev/null ; then
|
|
||||||
# The first argument is just the name of the program. Look for
|
|
||||||
# it in the build directory.
|
|
||||||
for libdir in $(find "${builddir}" -type d -name .libs -print) ; do
|
|
||||||
altprog="${libdir}/${prog}"
|
|
||||||
if [ -x "${altprog}" ] ; then
|
|
||||||
shift
|
|
||||||
set "${altprog}" "$@"
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Let's go!
|
|
||||||
exec gdb "$@"
|
|
Loading…
Reference in a new issue