freebsd-ports/www/opera-devel/files/operapluginwrapper
Ion-Mihai Tetcu e145a8875d - Update to 10.00 Apha-1. Changes: http://www.opera.com/browser/next/
-bring it more close to www/opera

Approved by:	maintainer (implicit)
2008-12-27 18:50:42 +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 $@