forked from calculate/calculate-overlay
git-svn-id: http://svn.calculate.ru/overlay@1304 c91db197-33c1-4113-bf15-f8a5c547ca64
parent
7dad1cb3c2
commit
fe008c1bd6
@ -0,0 +1,6 @@
|
||||
AUX 50-openoffice-infra-bin 68 RMD160 ec3932a2fedd553a2bbd457bc428cb02b6b13caa SHA1 95aabee29491b680517d4d99f66f4d0eae34e5db SHA256 d97d748537b043da24457252331c9a8213a40c54411a4e8bbebe7d609abfe07c
|
||||
AUX java-set-classpath.in 6571 RMD160 9798856a27f17d2e873b3a64244ba10994ba1d39 SHA1 f17ac77bf2ad467ee468449f12f83d766236ce95 SHA256 69ae498a7d0298461dbfc0650f097d960655bc3618877bfa1c922c4618134342
|
||||
AUX wrapper.in 96 RMD160 34ca656bc8af3c5b44ed16cebedf5d3297b09a2d SHA1 5861b8434da84efff56e5ceaf53a7668a5f52cea SHA256 97b603968d423e5d8e52c1c14c118647df0a7a858d6a1cb10524af9ea90a9dbc
|
||||
DIST OOo_2.4.2_LinuxIntel_ru_infra.tar.gz 141834592 RMD160 2bc18cb6fe665449ade01c21436e60327fb65264 SHA1 589375da02176f9bd6bf2a570e3428eb5de9617d SHA256 25bdb70d6dd6c8bce902d3339cefb3c56f3f67ea1123c90884735e8c6fdea297
|
||||
DIST OOo_2.4.2_LinuxX86-64_ru_infra.tar.gz 152635225 RMD160 eb873d619668d13eff6ae2b80126da30979d2ea5 SHA1 ceb23602917bda4eddbef8c5c9c9355413a5c69b SHA256 bfdad2892212db8543decae758f897a6b5dfc2bc77a43929b26d4941e2e13b57
|
||||
EBUILD openoffice-infra-bin-2.4.2.ebuild 36721 RMD160 beee98ec21edc7e441bbee639f8eb44265817e55 SHA1 6f9971452d8eea97cf0f424d32c1d04bf8a7a7bc SHA256 8513caad781ea348061ec911233295d7da9f097d9645d893185c6c5da8df7f4a
|
@ -0,0 +1 @@
|
||||
SEARCH_DIRS_MASK="/usr/lib/openoffice.org /usr/lib/openoffice.org3"
|
@ -0,0 +1,66 @@
|
||||
#!/bin/sh
|
||||
|
||||
#*****************************************************************************
|
||||
#
|
||||
# java-set-classpath - Utility to update the default CLASSPATH for OpenOffice.org
|
||||
#
|
||||
# Initial version by: Petr Mladek <pmladek@suse.cz>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License version 2, as
|
||||
# published by the Free Software Foundation.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
#*****************************************************************************
|
||||
|
||||
if test "z$1" = "z" ; then
|
||||
echo "Update the default CLASSPATH for OpenOffice.org"
|
||||
echo ""
|
||||
echo "Usage: $0 [dir|jar]..."
|
||||
echo ""
|
||||
echo "The utility updates the OpenOffice.org system setting. It adds or removes"
|
||||
echo "the given directories and jar-files to or from the default CLASSPATH"
|
||||
echo "depending on if they are available on the system or not."
|
||||
echo ""
|
||||
echo "Parameters:"
|
||||
echo " dir - absolute path to a directory"
|
||||
echo " jar - absolute path to a jar-file"
|
||||
exit 0;
|
||||
fi
|
||||
|
||||
JVM_CONFIG_FILE=@OOINSTBASE@/program/jvmfwk3rc
|
||||
|
||||
for path in $@ ; do
|
||||
if test "z${path%%/*}" != "z" ; then
|
||||
echo "Warning: the path "$path" is not absolute and will be ignored"
|
||||
continue
|
||||
fi
|
||||
if test -e $path ; then
|
||||
# the file exist
|
||||
grep "UNO_JAVA_JFW_CLASSPATH_URLS.*file:/*$path\([[:space:]].*\)\?$" $JVM_CONFIG_FILE >/dev/null && continue
|
||||
# it is not registered
|
||||
TMP_FILE=`mktemp /tmp/ooset-java-class.XXXXXXXXXX` || exit 1
|
||||
sed -e "s|^\(.*UNO_JAVA_JFW_CLASSPATH_URLS.*\)$|\1 file:$path|" $JVM_CONFIG_FILE >$TMP_FILE
|
||||
mv -f $TMP_FILE $JVM_CONFIG_FILE
|
||||
chmod 644 $JVM_CONFIG_FILE
|
||||
else
|
||||
# the file does not exist, remove it from the configuration
|
||||
TMP_FILE=`mktemp /tmp/ooset-java-class.XXXXXXXXXX` || exit 1;
|
||||
sed -e "s|^\(.*UNO_JAVA_JFW_CLASSPATH_URLS.*\)file:/*$path\([[:space:]].*\)\?$|\1\2|" \
|
||||
-e "s/\(UNO_JAVA_JFW_CLASSPATH_URLS=\)[[:space:]]\+/\1/" \
|
||||
-e "/^.*UNO_JAVA_JFW_CLASSPATH_URLS/s/[[:space:]]\+/ /g" \
|
||||
-e "/^.*UNO_JAVA_JFW_CLASSPATH_URLS/s/[[:space:]]*$//" $JVM_CONFIG_FILE >$TMP_FILE
|
||||
mv -f $TMP_FILE $JVM_CONFIG_FILE
|
||||
chmod 644 $JVM_CONFIG_FILE
|
||||
fi
|
||||
done
|
||||
|
||||
|
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
export OOO_EXTRA_ARG=''
|
||||
unset PYTHONPATH
|
||||
/usr/LIBDIR/openoffice/program/soffice "$@"
|
Loading…
Reference in new issue