home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 December
/
Chip_2000-12_cd1.bin
/
tema
/
starof
/
f_0000
/
setup
< prev
next >
Wrap
Text File
|
2000-04-27
|
1KB
|
78 lines
#!/bin/sh
#
# StarOffice patch checking script
# (c) 2000, Sun Microsystems Inc.
# resolve installation directory
sd_platform=`uname -s`
case $sd_platform in
SCO_SV) test=/bin/test ;;
*) test=/usr/bin/test ;;
esac
sd_cwd="`pwd`"
if $test -L "$0" ; then
sd_basename=`basename $0`
sd_script=`ls -l $0 | sed "s/.*${sd_basename} -> //g"`
else
sd_script="$0"
fi
cd "`dirname "$sd_script"`"
sd_archive_path=`pwd`
sd_setup_binary=setup.bin
sd_platform=`uname -s`
sd_release=`uname -r`
./sopatchlevel.sh
if [ $? -eq 1 ]; then
exit 0;
fi
# disable File Locking for NFS2 Linux Servers
#STAR_PROFILE_LOCKING_DISABLED=1
#export STAR_PROFILE_LOCKING_DISABLED
# some platforms may need an additional search path for X11 shared libraries
case $sd_platform in
SunOS)
SAL_IGNOREXERRORS=1
export SAL_IGNOREXERRORS
LD_LIBRARY_PATH=.:/usr/openwin/lib:../lib
export LD_LIBRARY_PATH
;;
Linux)
LD_LIBRARY_PATH=.:../lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
;;
*)
;;
esac
case $sd_release in
5.5.1)
PATCH1=`showrev -p | grep 103640`
if [ "$PATCH1" != "" ]; then
PATCH1=INSTALLED
else
PATCH1=MISSING
fi
PATCH2=`showrev -p | grep 103566`
if [ "$PATCH2" != "" ]; then
PATCH2=INSTALLED
else
PATCH2=MISSING
fi
THREAD_PATCH_NEEDED=TRUE
export PATCH1 PATCH2 THREAD_PATCH_NEEDED
;;
*)
;;
esac
# execute setup binary
exec "$sd_archive_path/$sd_setup_binary" $*