Changeset 54676 in vbox for trunk/src/VBox/Installer/darwin/VirtualBox/postflight
- Timestamp:
- Mar 7, 2015 12:16:35 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/darwin/VirtualBox/postflight
r49540 r54676 1 1 #!/bin/sh 2 # $Id$ 3 ## @file 4 # Post installation script. 5 # 2 6 3 7 # 4 # Copyright (C) 2007-201 0Oracle Corporation8 # Copyright (C) 2007-2015 Oracle Corporation 5 9 # 6 10 # This file is part of VirtualBox Open Source Edition (OSE), as … … 16 20 CPDIR="${CP} -R" 17 21 18 #19 # Select the right architecture.20 #21 MY_ARCH=`uname -m`22 if test "$MY_ARCH" = "x86_64"; then23 MY_ARCH="amd64"24 else25 MY_ARCH="x86"26 fi27 set -e28 for trg in `ls /Applications/VirtualBox.app/Contents/MacOS/*-${MY_ARCH}`;29 do30 linkname=`echo "$trg" | sed -e 's|-'"${MY_ARCH}"'$||' `31 if test "$linkname" = "$trg"; then32 echo "oops: $trg" 1>&233 exit 1;34 fi35 rm -f "$linkname"36 /bin/ln -vh "$trg" "$linkname"37 done38 22 39 23 # … … 104 88 105 89 exit 0; 90
Note:
See TracChangeset
for help on using the changeset viewer.