aboutsummaryrefslogtreecommitdiffstats
path: root/editors/openoffice.org-1.1/files/openoffice-wrapper
blob: 0d4b605cedc62029c0167b3dc462c8b1793941c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-1.1/files/Attic/openoffice-wrapper,v 1.11 2003-09-17 04:06:28 mbr Exp $

oopath=%%PREFIX%%/OpenOffice.org%%FRELEASE_NR%%/program/
program=`echo $0 | sed -e 's|.*-%%RELEASE_NR%%-||'`

case $program in
$0)
    cd $oopath && ./soffice "$@"
    ;;
    *)
    cd $oopath && exec ./$program "$@"
    ;;
esac