1.1 --- a/scripts/build/debug/200-duma.sh Thu Jun 19 15:30:01 2008 +0000
1.2 +++ b/scripts/build/debug/200-duma.sh Mon Jun 30 20:37:14 2008 +0000
1.3 @@ -58,15 +58,9 @@
1.4 CT_DoLog EXTRA "Installing wrapper script"
1.5 mkdir -p "${CT_DEBUG_INSTALL_DIR}/usr/bin"
1.6 # Install a simpler, smaller, safer wrapper than the one provided by D.U.M.A.
1.7 - cat >"${CT_DEBUG_INSTALL_DIR}/usr/bin/duma" <<_EOF_
1.8 -#!/bin/sh
1.9 -if [ \$# -eq 0 ]; then
1.10 - echo "Usage: \$0 <executable [args]>"
1.11 - exit 1
1.12 -fi
1.13 -export LD_PRELOAD="${duma_so}"
1.14 -exec "\$@"
1.15 -_EOF_
1.16 + sed -r -e 's:^LIBDUMA_SO=.*:LIBDUMA_SO=/usr/lib/'"${duma_so}"':;' \
1.17 + "${CT_LIB_DIR}/scripts/build/debug/duma.in" \
1.18 + >"${CT_DEBUG_INSTALL_DIR}/usr/bin/duma"
1.19 chmod 755 "${CT_DEBUG_INSTALL_DIR}/usr/bin/duma"
1.20 fi
1.21