1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/editors/openoffice-3-devel/files/openoffice-wrapper
Martin Blapp 79e75232f1 The relative path bug has been fixed. Execute soffice again
with absolute path.

This makes relative paths working again for specified documents
in the argument list.
2003-09-25 22:43:58 +00:00

16 lines
218 B
Bash

#!/bin/sh
#
# $FreeBSD$
oopath=%%PREFIX%%/OpenOffice.org%%FRELEASE_NR%%/program/
program=`echo $0 | sed -e 's|.*-%%RELEASE_NR%%-||'`
case $program in
$0)
$oopath/soffice "$@"
;;
*)
$oopath/$program "$@"
;;
esac