Changeset 21600 in vbox for trunk/src/VBox/Installer
- Timestamp:
- Jul 15, 2009 11:10:10 AM (15 years ago)
- Location:
- trunk/src/VBox/Installer/solaris
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/ipsinstall.sh
r20662 r21600 49 49 exit 3 50 50 fi 51 } 52 53 install_python_bindings() 54 { 55 PYTHONBIN=$1 56 if test -x "$PYTHONBIN"; then 57 VBOX_INSTALL_PATH=/opt/VirtualBox 58 export VBOX_INSTALL_PATH 59 cd /opt/VirtualBox/sdk/installer 60 $PYTHONBIN ./vboxapisetup.py install > /dev/null 61 return 0 62 fi 63 return 1 51 64 } 52 65 … … 168 181 PYTHONBIN=`which python` 169 182 if test -f "$PYTHONBIN" || test -h "$PYTHONBIN"; then 170 echo "Installing python bindings..." 171 172 VBOX_INSTALL_PATH=/opt/VirtualBox 173 export VBOX_INSTALL_PATH 174 cd /opt/VirtualBox/sdk/installer 175 $PYTHONBIN ./vboxapisetup.py install > /dev/null 176 rc3=$? 177 echo "Done." 183 echo "Installing Python bindings..." 184 185 INSTALLEDIT=1 186 PYTHONBIN=`which python2.4` 187 install_python_bindings "$PYTHONBIN" 188 if test "$?" -eq 0; then 189 INSTALLEDIT=0 190 fi 191 PYTHONBIN=`which python2.5` 192 install_python_bindings "$PYTHONBIN" 193 if test "$?" -eq 0; then 194 INSTALLEDIT=0 195 fi 196 PYTHONBIN=`which python2.6` 197 install_python_bindings "$PYTHONBIN" 198 if test "$?" -eq 0; then 199 INSTALLEDIT=0 200 fi 201 202 # remove files installed by Python build 203 rm -rf /opt/VirtualBox/sdk/installer/build 204 205 if test "$INSTALLEDIT" -ne 0; then 206 echo "** No suitable Python version found. Requires Python 2.4, 2.5 or 2.6." 207 fi 208 rc3=$INSTALLEDIT 178 209 else 179 210 echo "** WARNING! Python not found, skipped installed Python bindings." -
trunk/src/VBox/Installer/solaris/postinstall.sh
r20957 r21600 20 20 # additional information or have any questions. 21 21 # 22 23 install_python_bindings() 24 { 25 PYTHONBIN=$1 26 if test -x "$PYTHONBIN"; then 27 VBOX_INSTALL_PATH=/opt/VirtualBox 28 export VBOX_INSTALL_PATH 29 cd /opt/VirtualBox/sdk/installer 30 $PYTHONBIN ./vboxapisetup.py install > /dev/null 31 return 0 32 fi 33 return 1 34 } 22 35 23 36 # Check for xVM/Xen … … 122 135 echo "Installing Python bindings..." 123 136 124 VBOX_INSTALL_PATH=/opt/VirtualBox 125 export VBOX_INSTALL_PATH 126 cd /opt/VirtualBox/sdk/installer 127 $PYTHONBIN ./vboxapisetup.py install > /dev/null 137 INSTALLEDIT=1 138 PYTHONBIN=`which python2.4` 139 install_python_bindings "$PYTHONBIN" 140 if test "$?" -eq 0; then 141 INSTALLEDIT=0 142 fi 143 PYTHONBIN=`which python2.5` 144 install_python_bindings "$PYTHONBIN" 145 if test "$?" -eq 0; then 146 INSTALLEDIT=0 147 fi 148 PYTHONBIN=`which python2.6` 149 install_python_bindings "$PYTHONBIN" 150 if test "$?" -eq 0; then 151 INSTALLEDIT=0 152 fi 128 153 129 154 # remove files installed by Python build 130 rm -rf $VBOX_INSTALL_PATH/sdk/installer/build 155 rm -rf /opt/VirtualBox/sdk/installer/build 156 157 if test "$INSTALLEDIT" -ne 0; then 158 echo "** No suitable Python version found. Requires Python 2.4, 2.5 or 2.6." 159 fi 131 160 else 132 161 echo "** WARNING! Python not found, skipped installed Python bindings."
Note:
See TracChangeset
for help on using the changeset viewer.