Skip to content

Commit

Permalink
blah, i knew better than that
Browse files Browse the repository at this point in the history
  • Loading branch information
novas0x2a committed Oct 14, 2009
1 parent d9053e6 commit e4069f3
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions funcs.sh
Expand Up @@ -16,9 +16,11 @@ DARWIN_WHITELIST=(

is_whitelist()
{
elem="$1"
local elem="$1"
shift 1

local i

for i in "${DARWIN_WHITELIST[@]}"; do
if [[ $i = $elem ]]; then
return 0
Expand Down Expand Up @@ -47,7 +49,7 @@ die() {
set_rpath_linux() {
local file="$1"
shift 1
local rpath
local rpath i
for i in "$@"; do
rpath="${rpath}${rpath:+:}\$ORIGIN/$i"
done
Expand All @@ -65,9 +67,10 @@ set_rpath_darwin() {
continue
fi

origin="$(dirname $file)"
base="$(basename $entry)"
new=""
local origin="$(dirname $file)"
local base="$(basename $entry)"
local new=""

for rpath in "$@"; do
if [[ -r "$origin/$rpath/$base" ]]; then
new="@executable_path/$rpath/$base"
Expand Down

0 comments on commit e4069f3

Please sign in to comment.