summaryrefslogtreecommitdiff
path: root/solenv/bin/install-gdb-printers
diff options
context:
space:
mode:
Diffstat (limited to 'solenv/bin/install-gdb-printers')
-rwxr-xr-xsolenv/bin/install-gdb-printers28
1 files changed, 21 insertions, 7 deletions
diff --git a/solenv/bin/install-gdb-printers b/solenv/bin/install-gdb-printers
index c478929796fc..9f94d10f2718 100755
--- a/solenv/bin/install-gdb-printers
+++ b/solenv/bin/install-gdb-printers
@@ -84,6 +84,7 @@ make_autoload() {
local dir="${DESTDIR}${autoloaddir}"
${flat} || dir="${dir}/$2"
local lib="${dir}/$3"
+ local merged="$4"
if ! ${flat}; then
local resolved="$(readlink "${DESTDIR}${installdir}/$2/$3")"
@@ -103,8 +104,13 @@ make_autoload() {
fi
else
[[ -f ${lib}-gdb.py ]] && rm -f "${lib}-gdb.py"
- sed -e "s!%PYTHONDIR%!${pythondir}!" -e "s!%MODULE%!libreoffice.$1!" \
- "${GDBDIR}/autoload.template" > "${lib}-gdb.py"
+ if [[ -n "${merged}" ]]; then
+ sed -e "s!%PYTHONDIR%!${pythondir}!" -e "s!%MODULES%!${*:5}!" \
+ "${GDBDIR}/autoload.template" > "${lib}-gdb.py"
+ else
+ sed -e "s!%PYTHONDIR%!${pythondir}!" -e "s!%MODULES%!$1!" \
+ "${GDBDIR}/autoload.template" > "${lib}-gdb.py"
+ fi
fi
}
@@ -168,10 +174,18 @@ if [[ ${DESTDIR}${pythondir} != ${GDBDIR} ]]; then
cp -pr "${GDBDIR}/libreoffice" "${DESTDIR}${pythondir}"
fi
-make_autoload cppu ure-link/lib libuno_cppu."$DYLIB".3
-make_autoload sal ure-link/lib libuno_sal."$DYLIB".3
-make_autoload svl program libsvllo."$DYLIB"
-make_autoload sw program libswlo."$DYLIB"
-make_autoload tl program libtllo."$DYLIB"
+if [[ -n "${MERGELIBS}" ]]; then
+ make_autoload merged program libmergedlo."$DYLIB" merge svl tl `[[ ${MERGELIBS} == "ALL" ]] && echo sw`
+ if [[ ${MERGELIBS} == "ALL" ]]; then
+ make_autoload urelibs ure-link/lib liburelibs."$DYLIB" merge cppu sal
+ else
+ make_autoload cppu ure-link/lib libuno_cppu."$DYLIB".3
+ make_autoload sal ure-link/lib libuno_sal."$DYLIB".3
+ make_autoload sw program libswlo."$DYLIB"
+ fi
+else
+ make_autoload svl program libsvllo."$DYLIB"
+ make_autoload tl program libtllo."$DYLIB"
+fi
# vim:set shiftwidth=4 softtabstop=4 expandtab: