#!/bin/sh
@@ifdef tar
 @@ifndef tar-install
  @@define PREFIX "${0%/*}"
  @@define SUFFIX @@{CONF:suffix}
 @@endif
@@elifdef devel
 @@define PREFIX "${0%/*}"
@@endif
export OPERA_DIR=${OPERA_DIR:-@@{ABS:RESOURCES}}
@@ifdef tar
 @@ifdef tar-install
export OPERA_PERSONALDIR=${OPERA_PERSONALDIR:-$HOME/.opera@@{SUFFIX}}
 @@else
export OPERA_PERSONALDIR=${OPERA_PERSONALDIR:-@@{PREFIX}/profile}
 @@endif
@@elifdef devel
export OPERA_PERSONALDIR=${OPERA_PERSONALDIR:-@@{PREFIX}/profile}
export SELFTEST_DATA_ROOT=${SELFTEST_DATA_ROOT:-@@{CONF:source}}
@@elifndef opera
export OPERA_PERSONALDIR=${OPERA_PERSONALDIR:-$HOME/.opera@@{SUFFIX}}
@@endif
@@ifdef lib-per-module
export LD_LIBRARY_PATH=@@{ABS:UNIX_LIB}${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
@@endif
@@ifdef devel
${OPERA_DEBUGGER:-@@{CONF:debugger}} @@{ABS:UNIX_LIB}/opera@@{SUFFIX} "$@"
@@else
exec @@{ABS:UNIX_LIB}/opera@@{SUFFIX} "$@"
@@endif
