VirtualBox

Ignore:
Timestamp:
Mar 7, 2015 12:16:35 AM (10 years ago)
Author:
vboxsync
Message:

Installer/darwin: Can't switch between x86 and amd64 binaries with new signing (and we no longer need to).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/darwin/VirtualBox/postflight

    r49540 r54676  
    11#!/bin/sh
     2# $Id$
     3## @file
     4# Post installation script.
     5#
    26
    37#
    4 # Copyright (C) 2007-2010 Oracle Corporation
     8# Copyright (C) 2007-2015 Oracle Corporation
    59#
    610# This file is part of VirtualBox Open Source Edition (OSE), as
     
    1620CPDIR="${CP} -R"
    1721
    18 #
    19 # Select the right architecture.
    20 #
    21 MY_ARCH=`uname -m`
    22 if test "$MY_ARCH" = "x86_64"; then
    23   MY_ARCH="amd64"
    24 else
    25   MY_ARCH="x86"
    26 fi
    27 set -e
    28 for trg in `ls /Applications/VirtualBox.app/Contents/MacOS/*-${MY_ARCH}`;
    29 do
    30     linkname=`echo "$trg" | sed -e 's|-'"${MY_ARCH}"'$||' `
    31     if test "$linkname" = "$trg"; then
    32         echo "oops: $trg" 1>&2
    33         exit 1;
    34     fi
    35     rm -f         "$linkname"
    36     /bin/ln -vh "$trg" "$linkname"
    37 done
    3822
    3923#
     
    10488
    10589exit 0;
     90
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette