diff options
author | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2008-12-27 18:50:42 +0000 |
---|---|---|
committer | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2008-12-27 18:50:42 +0000 |
commit | e145a8875d024fdfe8444d5dea06eea6b8286cd7 (patch) | |
tree | 4bc848db2f5ef5612f1f8c5b487c9cad9487a2a5 /www/opera-devel/files | |
parent | ac5ba5387e15230b8589b028cd1765460d192230 (diff) | |
download | ports-e145a8875d024fdfe8444d5dea06eea6b8286cd7.tar.gz ports-e145a8875d024fdfe8444d5dea06eea6b8286cd7.zip |
Notes
Diffstat (limited to 'www/opera-devel/files')
-rw-r--r-- | www/opera-devel/files/operapluginwrapper | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/www/opera-devel/files/operapluginwrapper b/www/opera-devel/files/operapluginwrapper new file mode 100644 index 000000000000..fcec17e85d80 --- /dev/null +++ b/www/opera-devel/files/operapluginwrapper @@ -0,0 +1,22 @@ +#!/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 $@ + |