[Libreoffice-commits] .: 2 commits - Makefile.in solenv/bin

David Tardon dtardon at kemper.freedesktop.org
Sun Sep 18 03:03:41 PDT 2011


 Makefile.in                     |    1 
 solenv/bin/install-gdb-printers |   46 ++++++++++++++++++++++++++++++++++++++--
 2 files changed, 44 insertions(+), 3 deletions(-)

New commits:
commit ebf6d5deba07b23ce3b340e1a0b6b53b0c63a0e9
Author: David Tardon <dtardon at redhat.com>
Date:   Sun Sep 18 12:01:13 2011 +0200

    add help

diff --git a/solenv/bin/install-gdb-printers b/solenv/bin/install-gdb-printers
index 289a986..3606dca 100755
--- a/solenv/bin/install-gdb-printers
+++ b/solenv/bin/install-gdb-printers
@@ -35,6 +35,47 @@ die() {
     exit 1
 }
 
+usage() {
+    cat <<EOT
+Install gdb pretty printers and autoloaders for them.
+
+Usage:
+install-gdb-printers [ -a dir ] [ -i dir ] [ -p dir ] [ -c ] [ -L ]
+install-gdb-printers -h
+
+Options:
+-a dir  The dir where autoloaders will be placed. Defaults to whatever -i
+        is.
+-c      Create the autoloader's dir if it does not exist. This option only
+        makes sense if both -a and -i are used.
+-f      Do not create subdirs in the autoloader's dir. This option is only
+        used during build.
+-h      Show this help text.
+-i dir  The dir where libreoffice is installed. Defaults to whatever -a is.
+-L      Create symlinks to autoloaders already present in the build tree.
+        Only makes sense for dev. installation.
+-p dir  The dir where pretty printers are placed.
+
+Env. variables:
+DESTDIR     If set, it is prepended to all dir arguments.
+
+Examples:
+1) Make pretty printers usable in your dev. installation (this is
+   already done as part of make dev-install, but it would not have been
+   run if smoketest failed):
+
+install-gdb-printers -L
+
+2) Install pretty printers into /usr/share/libreoffice/gdb, with
+   autoloaders in /usr/share/gdb/auto-load (run
+   "info gdb 'Extending GDB' Python Auto-loading" to learn more) and
+   installation in /usr/lib64/libreoffice (this is what Fedora does):
+
+install-gdb-printers -a /usr/share/gdb/auto-load/usr/lib64/libreoffice -c \\
+    -i /usr/lib64/libreoffice -p /usr/share/libreoffice/gdb
+EOT
+}
+
 make_autoload() {
     local dir="${DESTDIR}${autoloaddir}"
     ${flat} || dir="${dir}/$2"
@@ -81,12 +122,13 @@ link=false
 # are in the same dir.
 flat=false
 
-#  b de gh jklmno qrstuvwxyzABCDEFGHIJK MNOPQRSTUVWXYZ0123456789
-while getopts :a:cfi:p:L opt; do
+#  b de g  jklmno qrstuvwxyzABCDEFGHIJK MNOPQRSTUVWXYZ0123456789
+while getopts :a:cfhi:p:L opt; do
     case ${opt} in
         a) autoloaddir="${OPTARG}" ;;
         c) create=true ;;
         f) flat=true ;;
+        h) usage; exit ;;
         i) installdir="${OPTARG}" ;;
         p) pythondir="${OPTARG}" ;;
         L) link=true ;;
commit 9617a776b42e4c37a30e28eb759c6fda6d8d9ca4
Author: David Tardon <dtardon at redhat.com>
Date:   Sun Sep 18 11:28:27 2011 +0200

    don't setup gdb printers for regular installation
    
    If someone wants to use them there, he should just run the
    install-gdb-script himself.

diff --git a/Makefile.in b/Makefile.in
index 715d61d..fcd88b9 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -62,7 +62,6 @@ install: build
 	echo "" && \
 	echo "Installation finished, you can now execute:" && \
 	echo "@INSTALLDIR@/program/soffice" && \
-	install-gdb-printers -a "@INSTALLDIR@"
 
 distro-pack-install: install
 	./bin/distro-install-clean-up


More information about the Libreoffice-commits mailing list