summaryrefslogtreecommitdiff
path: root/desktop/scripts
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-03-18 12:45:09 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-03-18 12:45:09 +0000
commit675580f35f8c7b11790aac79a12d17793f87d580 (patch)
tree46702950cd03e1644ae24a2f1649c510e6ed1a1d /desktop/scripts
parent56e2cda2b13e648e3e59d1345b95608a60e621e2 (diff)
INTEGRATION: CWS sb83 (1.6.34); FILE MERGED
2008/03/04 16:23:41 sb 1.6.34.10: missing export 2008/02/14 13:05:19 sb 1.6.34.9: #i84200# for now, move crash reporter to brand layer 2008/02/12 08:44:09 sb 1.6.34.8: #i84200# lots of cleanup 2008/02/08 11:12:48 sb 1.6.34.7: #i84200# extract all the meat from (soffice|unkpkg).bin into (soffice|unkpkg).dll, where the .dll are in the basis layer and the .bin, on all plattforms, are in the brand layer, where they can include brand-specific icons on Windows (read by vcl; potentially visible in Windows Explorer according to hro) 2008/02/01 13:29:23 sb 1.6.34.6: RESYNC: (1.7-1.9); FILE MERGED 2008/01/23 15:16:33 sb 1.6.34.5: #i84200# moved executables from brand layer to basis layer 2008/01/21 15:13:48 sb 1.6.34.4: #i84200# have a fake ure-link in all Unix good-old monolithic OOos, so that start-script javaldx execution can be simplified 2008/01/07 15:27:10 sb 1.6.34.3: #i84985# added URE_OVERRIDE_JAVA_JFW_SHARED|USER_DATA 2008/01/02 12:26:02 sb 1.6.34.2: #i84200# First step of basis/brand split.# 2007/11/22 09:45:46 sb 1.6.34.1: Merged in CWS sb80.
Diffstat (limited to 'desktop/scripts')
-rw-r--r--desktop/scripts/unopkg.sh91
1 files changed, 13 insertions, 78 deletions
diff --git a/desktop/scripts/unopkg.sh b/desktop/scripts/unopkg.sh
index 236c92f78100..250160cff5a6 100644
--- a/desktop/scripts/unopkg.sh
+++ b/desktop/scripts/unopkg.sh
@@ -5,9 +5,9 @@
#
# $RCSfile: unopkg.sh,v $
#
-# $Revision: 1.9 $
+# $Revision: 1.10 $
#
-# last change: $Author: rt $ $Date: 2008-01-15 10:40:00 $
+# last change: $Author: vg $ $Date: 2008-03-18 13:45:09 $
#
# The Contents of this file are made available subject to
# the terms of GNU Lesser General Public License Version 2.1.
@@ -48,53 +48,9 @@ if [ -h "$0" ] ; then
else
cd "`dirname "$0"`"
fi
-
-sd_prog="`pwd`"
-
-cd ..
-sd_binary=`basename "$0"`".bin"
-sd_inst="`pwd`"
-
-# change back directory
+sd_prog=`pwd`
cd "$sd_cwd"
-# check if all required patches are installed
-if [ -x "$sd_prog/sopatchlevel.sh" ]; then
- "$sd_prog/sopatchlevel.sh"
- if [ $? -eq 1 ]; then
- exit 0
- fi
-fi
-
-# set search path for shared libraries
-sd_platform=`uname -s`
-case $sd_platform in
- AIX)
- LIBPATH=${sd_prog}${LIBPATH+:${LIBPATH}}
- export LIBPATH
- ;;
-
- Darwin)
- DYLD_LIBRARY_PATH=${sd_prog}${DYLD_LIBRARY_PATH+:${DYLD_LIBRARY_PATH}}
- export DYLD_LIBRARY_PATH
- ;;
-
- HP-UX)
- SHLIB_PATH=${sd_prog}:/usr/openwin/lib${SHLIB_PATH+:${SHLIB_PATH}}
- export SHLIB_PATH
- ;;
-
- IRIX*)
- LD_LIBRARYN32_PATH=${sd_prog}${LD_LIBRARYN32_PATH+:${LD_LIBRARYN32_PATH}}
- export LD_LIBRARYN32_PATH
- ;;
-
- *)
- LD_LIBRARY_PATH=${sd_prog}${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}
- export LD_LIBRARY_PATH
- ;;
-esac
-
#collect all bootstrap variables specified on the command line
#so that they can be passed as arguments to javaldx later on
for arg in $@
@@ -105,43 +61,22 @@ do
done
# extend the ld_library_path for java: javaldx checks the sofficerc for us
-unset java_ld_library_path
-if [ -x "$sd_prog/javaldx" ] ; then
- java_ld_library_path=`"$sd_prog/javaldx" $BOOTSTRAPVARS`
-elif [ -x "$sd_prog/../ure-link/javaldx" ] ; then
- java_ld_library_path=`"$sd_prog/../ure-link/javaldx" $BOOTSTRAPVARS`
-fi
-if [ "$java_ld_library_path" != "" ] ; then
- case $sd_platform in
- AIX)
- LIBPATH=${java_ld_library_path}:${LIBPATH}
- ;;
- Darwin)
- DYLD_LIBRARY_PATH=${java_ld_library_path}:${DYLD_LIBRARY_PATH}
- ;;
- HP-UX)
- SHLIB_PATH=${java_ld_library_path}:${SHLIB_PATH}
- ;;
- IRIX*)
- LD_LIBRARYN32_PATH=${java_ld_library_path}:${LD_LIBRARYN32_PATH}
- ;;
- *)
- LD_LIBRARY_PATH=${java_ld_library_path}:${LD_LIBRARY_PATH}
- ;;
- esac
+if [ -x "$sd_prog/../basis-link/ure-link/bin/javaldx" ] ; then
+ my_path=`"$sd_prog/../basis-link/ure-link/bin/javaldx" $BOOTSTRAPVARS \
+ "-env:INIFILEPATH=$sd_prog/redirectrc"`
+ if [ -n "$my_path" ] ; then
+ LD_LIBRARY_PATH=$my_path${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}
+ export LD_LIBRARY_PATH
+ fi
fi
-# misc. environment variables
-OPENOFFICE_MOZILLA_FIVE_HOME="$sd_inst/program"
-export OPENOFFICE_MOZILLA_FIVE_HOME
-
unset XENVIRONMENT
# uncomment line below to disable anti aliasing of fonts
# SAL_ANTIALIAS_DISABLE=true; export SAL_ANTIALIAS_DISABLE
-# set path so that other apps can be started just by name
-PATH="$sd_prog":$PATH
+# Set PATH so that crash_report is found:
+PATH=$sd_prog${PATH+:$PATH}
export PATH
# assume gui mode if passed a single oxt file as argument
@@ -149,5 +84,5 @@ GUI=""
[ $# -eq 1 -a "oxt" = "`echo $1 | cut -d . -f 2`" -a -n "$DISPLAY" ] && GUI="gui"
# execute binary
-exec "$sd_prog/$sd_binary" $GUI "$@"
+exec "$sd_prog/unopkg.bin" $GUI "$@" "-env:INIFILEPATH=$sd_prog/redirectrc"