5 SCRIPTNAME
=`basename "$0"`
6 PROGRAMDIR
=`dirname "$0"`
7 OFFICEDIR
="$PROGRAMDIR/.."
8 EXTENSIONDIR
=$OFFICEDIR/share
/extension
/install
9 REGISTERFILE
=$PROGRAMDIR/register.dat
10 UNOPKG
=$PROGRAMDIR/unopkg
15 echo "Installation script for office extensions located in <office>/share/extension/install"
17 echo "This installation script can be executed after successful installation of packages."
18 echo "Before uninstallation please execute the script \"deregister_extensions\" located next"
19 echo "to this script."
21 echo "No parameter required."
26 # This script is only for root installations
27 # (How about installations done with user privileges?)
32 # printf "\nThis script is for installation only wiht administrative rights only\n"
38 # Checking existence of unopkg in program directory
41 if [ ! -f "$UNOPKG" ]; then
42 echo "Error: File $UNOPKG does not exist"
46 if [ ! -x "$UNOPKG" ]; then
47 echo "Error: File $UNOPKG is not an executable file"
52 # Collecting all files located in share/install/extensions
55 FILELIST
=`find $EXTENSIONDIR -type f -name "*.oxt" -print`
59 printf "\n$0: No extensions found in $EXTENSIONDIR\n"
65 for i
in $FILELIST; do
70 for i
in $FILELIST; do
71 COMMAND
="$UNOPKG add --shared $i"
76 if [ -f $REGISTERFILE ]; then
81 echo "Installation done ..."