[ooo-build-commit] .: bin/piece
Petr Mladek
pmladek at kemper.freedesktop.org
Thu May 6 09:41:16 PDT 2010
bin/piece/file-list-ure | 12 ++++++++++++
bin/piece/sys-setup.in | 1 +
2 files changed, 13 insertions(+)
New commits:
commit bc252d8ca48c0d500b9c694f34f0583bdf34215f
Author: Petr Mladek <pmladek at suse.cz>
Date: Thu May 6 18:39:03 2010 +0200
symlink uno.py and unohelper.py into the system python path (split build)
* bin/piece/file-list-ure: the symlink might be useful for 3rd-party projects,
for example, see
http://lists.gnu.org/archive/html/gnumed-devel/2010-04/msg00094.html
* bin/piece/sys-setup.in: set OO_LIBDIR
diff --git a/bin/piece/file-list-ure b/bin/piece/file-list-ure
index c098c15..3e45916 100755
--- a/bin/piece/file-list-ure
+++ b/bin/piece/file-list-ure
@@ -46,4 +46,16 @@ PYUNO_LOADER_PYTHONPATH=\$ORIGIN
EOT
echo "%config $OO_INSTDIR/basis$VERSION/program/pythonloader.unorc" >>files-pyuno.txt
+# it is helpful to symlink uno.py and unohelper.py into the system python path,
+# for example, see http://lists.gnu.org/archive/html/gnumed-devel/2010-04/msg00094.html
+python_dir="$OO_LIBDIR/python"
+test -L "$python_dir" && python_dir=`readlink -f $python_dir`
+if test -d "$python_dir" ; then
+ mkdir -p "$DESTDIR$python_dir"
+ for f in uno.py unohelper.py ; do
+ ln -sf "$OO_INSTDIR/basis$VERSION/program/$f" "$DESTDIR$python_dir/$f"
+ echo "$python_dir/$f" >>files-pyuno.txt
+ done
+fi
+
exit 0
diff --git a/bin/piece/sys-setup.in b/bin/piece/sys-setup.in
index b2090ad..83facb1 100755
--- a/bin/piece/sys-setup.in
+++ b/bin/piece/sys-setup.in
@@ -6,6 +6,7 @@ export VENDORNAME='@VENDORNAME@'
export VERSION='@OOO_VERSION@'
export OO_INSTDIR=@libdir@/@OOOINSTALLDIRNAME@
export OO_PREFIX=@prefix@
+export OO_LIBDIR=@libdir@
export OO_MANDIR=@mandir@
export OO_DOCDIR=@docdir@
export OO_LANGS='@OOO_LANGS@'
More information about the ooo-build-commit
mailing list