root/pbibuild/modules/openoffice-en/overlay-dir/PBI.SetupScript.sh

Revision 1035, 2.2 KB (checked in by kris, 13 months ago)

Initial import of OpenOffice? English module, will add i18n module once
the bug with OO 2.3.1 on KDE is fixed

  • Property svn:executable set to *
Line 
1#!/bin/sh
2# Filename: PBI.SetupScript.sh
3# Place any custom installation code here.
4# This script will be run after your program is extracted into
5# /Programs/<ProgNameVer>/
6# ${1} is the directory name.
7# ${2} is the username of person performing install.
8# TIP: 'kdialog' should be used for user interaction.
9# To interact with the progress dialog echo these flags:
10# echo 'TOTALSTEPS: <num>' # Set the total steps of the progress bar
11# echo 'SETSTEPS: <num>' # Set the current progress of the progress bar
12# echo 'MSG: <text>' # Display this text above progress bar
13#########################################
14
15cd /Programs/${PROGDIR}
16
17# Get the OO base name
18OODIR="`ls -d openoffice.org*`"
19
20# Setup the external links
21ln -s /Programs/${PROGDIR}/${OODIR} /usr/local/${OODIR}
22ln -s /Programs/${PROGDIR}/bin/${OODIR} /usr/local/bin/${OODIR}
23
24ln -s /Programs/${PROGDIR}/bin/${OODIR}-sbase /usr/local/bin/${OODIR}-sbase
25ln -s /Programs/${PROGDIR}/bin/${OODIR}-scalc /usr/local/bin/${OODIR}-scalc
26ln -s /Programs/${PROGDIR}/bin/${OODIR}-sdraw /usr/local/bin/${OODIR}-sdraw
27ln -s /Programs/${PROGDIR}/bin/${OODIR}-setofficelang /usr/local/bin/${OODIR}-setofficelang
28ln -s /Programs/${PROGDIR}/bin/${OODIR}-simpress /usr/local/bin/${OODIR}-simpress
29ln -s /Programs/${PROGDIR}/bin/${OODIR}-smath /usr/local/bin/${OODIR}-smath
30ln -s /Programs/${PROGDIR}/bin/${OODIR}-spadmin /usr/local/bin/${OODIR}-spadmin
31ln -s /Programs/${PROGDIR}/bin/${OODIR}-swriter /usr/local/bin/${OODIR}-swriter
32
33ln -s /Programs/${PROGDIR}/.sbin/sbase /usr/local/bin/sbase
34ln -s /Programs/${PROGDIR}/.sbin/scalc /usr/local/bin/scalc
35ln -s /Programs/${PROGDIR}/.sbin/sdraw /usr/local/bin/sdraw
36ln -s /Programs/${PROGDIR}/.sbin/simpress /usr/local/bin/simpress
37ln -s /Programs/${PROGDIR}/.sbin/smath /usr/local/bin/smath
38ln -s /Programs/${PROGDIR}/.sbin/swriter /usr/local/bin/swriter
39
40# Make sure any old sun.xml mime types are removed
41rm /usr/local/share/mimelnk/application/vnd.sun.xml*
42rm /usr/local/share/mimelnk/application/vnd.star*
43rm /usr/local/share/mimelnk/application/vnd.oasis.opendocument*
44rm /usr/local/share/mimelnk/application/vnd.ms-excel.desktop
45rm /usr/local/share/mimelnk/application/vnd.ms-powerpoint.desktop
46rm /usr/local/share/mimelnk/application/vnd.ms-word.desktop
Note: See TracBrowser for help on using the browser.