spadmin.sh (fce70c9b) | spadmin.sh (28b67305) |
---|---|
1#!/bin/sh 2#************************************************************** 3# 4# Licensed to the Apache Software Foundation (ASF) under one 5# or more contributor license agreements. See the NOTICE file 6# distributed with this work for additional information 7# regarding copyright ownership. The ASF licenses this file 8# to you under the Apache License, Version 2.0 (the --- 33 unchanged lines hidden (view full) --- 42for arg in $@ 43do 44 case "$arg" in 45 -env:*) BOOTSTRAPVARS=$BOOTSTRAPVARS" ""$arg";; 46 esac 47done 48 49# extend the ld_library_path for java: javaldx checks the sofficerc for us | 1#!/bin/sh 2#************************************************************** 3# 4# Licensed to the Apache Software Foundation (ASF) under one 5# or more contributor license agreements. See the NOTICE file 6# distributed with this work for additional information 7# regarding copyright ownership. The ASF licenses this file 8# to you under the Apache License, Version 2.0 (the --- 33 unchanged lines hidden (view full) --- 42for arg in $@ 43do 44 case "$arg" in 45 -env:*) BOOTSTRAPVARS=$BOOTSTRAPVARS" ""$arg";; 46 esac 47done 48 49# extend the ld_library_path for java: javaldx checks the sofficerc for us |
50if [ -x "$sd_prog/../basis-link/ure-link/bin/javaldx" ] ; then | 50if [ -x "$sd_prog/javaldx" ] ; then |
51 # this is a temporary hack until we can live with the default search paths 52 case "`uname -s`" in 53 FreeBSD) | 51 # this is a temporary hack until we can live with the default search paths 52 case "`uname -s`" in 53 FreeBSD) |
54 sd_prog1="$sd_prog/../basis-link/program" 55 sd_prog2="$sd_prog/../basis-link/ure-link/lib" 56 LD_LIBRARY_PATH=$sd_prog1:$sd_prog2${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}} | 54 LD_LIBRARY_PATH=$sd_prog:${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}} |
57 export LD_LIBRARY_PATH 58 ;; 59 esac | 55 export LD_LIBRARY_PATH 56 ;; 57 esac |
60 my_path=`"$sd_prog/../basis-link/ure-link/bin/javaldx" $BOOTSTRAPVARS \ | 58 my_path=`"$sd_prog/javaldx" $BOOTSTRAPVARS \ |
61 "-env:INIFILENAME=vnd.sun.star.pathname:$sd_prog/redirectrc"` 62 if [ -n "$my_path" ] ; then 63 LD_LIBRARY_PATH=$my_path${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} 64 export LD_LIBRARY_PATH 65 fi 66fi 67 68unset XENVIRONMENT 69 70# uncomment line below to disable anti aliasing of fonts 71# SAL_ANTIALIAS_DISABLE=true; export SAL_ANTIALIAS_DISABLE 72 73# Set PATH so that crash_report is found: 74PATH=$sd_prog${PATH+:$PATH} 75export PATH 76 77# execute binary | 59 "-env:INIFILENAME=vnd.sun.star.pathname:$sd_prog/redirectrc"` 60 if [ -n "$my_path" ] ; then 61 LD_LIBRARY_PATH=$my_path${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} 62 export LD_LIBRARY_PATH 63 fi 64fi 65 66unset XENVIRONMENT 67 68# uncomment line below to disable anti aliasing of fonts 69# SAL_ANTIALIAS_DISABLE=true; export SAL_ANTIALIAS_DISABLE 70 71# Set PATH so that crash_report is found: 72PATH=$sd_prog${PATH+:$PATH} 73export PATH 74 75# execute binary |
78exec "$sd_prog/../basis-link/program/spadmin.bin" "$@" \ | 76exec "$sd_prog/spadmin.bin" "$@" \ |
79 "-env:INIFILENAME=vnd.sun.star.pathname:$sd_prog/redirectrc" | 77 "-env:INIFILENAME=vnd.sun.star.pathname:$sd_prog/redirectrc" |