Magellan Linux

Annotation of /trunk/openoffice/ooffice-wrapper

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1014 - (hide annotations) (download)
Wed Mar 10 23:58:23 2010 UTC (14 years, 7 months ago) by niro
File size: 645 byte(s)
-fixed wrapper to work with >=00o3.2

1 niro 153 #!/bin/sh
2     # Wrapper script for openoffice
3    
4 niro 1014 OO_PVER=<pver>
5     OO_HOME="/opt/openoffice-${OO_PVER}"
6 niro 153
7 niro 1014 export OOO_EXTRA_ARG=''
8     unset PYTHONPATH
9 niro 153
10     ##
11 niro 331 ## If no file is specified on the command line, which application to start?
12 niro 153 ## The wrapper can be called from several links in /usr/bin
13     ##
14 niro 331 if [ $# = 0 ]
15     then
16     case $(basename $0) in
17 niro 1014 oobase) set -- -base ;;
18     oocalc) set -- -calc ;;
19     oodraw) set -- -draw ;;
20     ooimpress) set -- -impress ;;
21     oomath) set -- -math ;;
22     ooweb) set -- -web ;;
23     oowriter) set -- -writer ;;
24 niro 331 esac
25 niro 153 fi
26    
27 niro 331 case $(basename $0) in
28 niro 1014 oopadmin) exec "${OO_HOME}/program/spadmin" ;;
29     *) exec "${OO_HOME}/program/soffice" "$@" ;;
30 niro 153 esac