freebsd-ports/www/opera/files/operapluginwrapper
Simon L. B. Nielsen c4236ecfb8 Fix last commit to remove sh(1) sytax error in operapluginwrapper. This
should make Opera start up without errors.

Note that the broken version was only in the commit, not the PR.

Pointy hat to:	itetcu
2008-12-27 13:17:28 +00:00

22 lines
292 B
Bash

#!/bin/sh
if [ -n "$5" ]; then
ELFTYPE=`brandelf $5`
elif [ -n "$4" ]; then
ELFTYPE=`brandelf $4`
elif [ -n "$3" ]; then
ELFTYPE=`brandelf $3`
fi
WRAPPER="freebsd"
case "${ELFTYPE}" in
*SVR4*|*Linux*)
if [ -x "$0.linux" ]; then
WRAPPER="linux"
fi
;;
esac
exec $0.$WRAPPER $@