The R Project SVN R

Rev

Rev 37314 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37314 Rev 40193
Line 19... Line 19...
19
    exit 2
19
    exit 2
20
fi
20
fi
21
 
21
 
22
#echo "architecture: $thisarch";
22
#echo "architecture: $thisarch";
23
if [ -e "$1" ]; then \
23
if [ -e "$1" ]; then \
24
    if lipo -detailed_info "$1"|grep "architecture:* $thisarch" > /dev/null; then
24
    if lipo -detailed_info "$1"|grep "architecture:* $thisarch\$" > /dev/null; then
25
	if lipo -info "$1"|grep ^Non-fat > /dev/null; then
25
	if lipo -info "$1"|grep ^Non-fat > /dev/null; then
26
	    lipo -create "$2" -o "$1"
26
	    lipo -create "$2" -o "$1"
27
	else
27
	else
28
	    lipo -replace "$thisarch" "$2" "$1" -o "$1"
28
	    lipo -replace "$thisarch" "$2" "$1" -o "$1"
29
	fi
29
	fi