diff options
Diffstat (limited to 'dyld')
-rw-r--r-- | dyld | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,16 @@ +#!/usr/bin/sh + +if [[ -f $1 ]]; then + file -b $1 | grep -q "Mach-O" | grep -q "executable" 2> /dev/null || binary=$1 +fi + +if [[ -n $binary && $(file -b $binary) == *x86_64* ]]; then + echo -e "\t\t\033[1;44;37mDarling 64-bit:\033[0;44;37m `basename $binary`\033[0m" + /usr/bin/dyld64 $@ +elif [[ -n $binary && $(file -b $binary) == *i386* ]]; then + echo -e "\t\t\033[1;44;37mDarling 32-bit:\033[0;44;37m `basename $binary`\033[0m" + /usr/bin/dyld32 $@ +else + echo -e "\t\t\033[1;44;37mDarling 64-bit\033[0m" + /usr/bin/dyld64 $@ +fi |