VirtualBox

Changeset 39322 in vbox for trunk/src/VBox/Additions/linux


Ignore:
Timestamp:
Nov 16, 2011 9:46:33 AM (13 years ago)
Author:
vboxsync
Message:

linux/installers: clean up build_in_tmp (Additions side).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/installer/vboxadd.sh

    r38542 r39322  
    3131PATH=$PATH:/bin:/sbin:/usr/sbin
    3232PACKAGE=VBoxGuestAdditions
    33 BUILDVBOXGUEST=`/bin/ls /usr/src/vboxguest*/vboxguest/build_in_tmp 2>/dev/null|cut -d' ' -f1`
    34 BUILDVBOXSF=`/bin/ls /usr/src/vboxguest*/vboxsf/build_in_tmp 2>/dev/null|cut -d' ' -f1`
    35 BUILDVBOXVIDEO=`/bin/ls /usr/src/vboxguest*/vboxvideo/build_in_tmp 2>/dev/null|cut -d' ' -f1`
    36 DODKMS=`/bin/ls /usr/src/vboxguest*/do_dkms 2>/dev/null|cut -d' ' -f1`
     33MODULE_SRC=`/bin/ls /usr/src/vboxguest* 2>/dev/null|cut -d' ' -f1`
     34BUILDINTMP="$MODULE_SRC/build_in_tmp"
     35DODKMS="$MODULE_SRC/do_dkms"
    3736LOG="/var/log/vboxadd-install.log"
    3837MODPROBE=/sbin/modprobe
     
    383382
    384383    echo
     384    begin "Building the main Guest Additions module"
     385    if ! $BUILDINTMP \
     386        --save-module-symvers /tmp/vboxguest-Module.symvers \
     387        --module-source $MODULE_SRC/vboxguest \
     388        --no-print-directory install >> $LOG 2>&1; then
     389        show_error "Look at $LOG to find out what went wrong"
     390        return 1
     391    fi
     392    succ_msg
     393    begin "Building the shared folder support module"
     394    if ! $BUILDINTMP \
     395        --use-module-symvers /tmp/vboxguest-Module.symvers \
     396        --module-source $MODULE_SRC/vboxsf \
     397        --no-print-directory install >> $LOG 2>&1; then
     398        show_error  "Look at $LOG to find out what went wrong"
     399        return 1
     400    fi
     401    succ_msg
    385402    if expr `uname -r` '<' '2.6.27' > /dev/null; then
    386403        echo "Not building the VirtualBox advanced graphics driver as this Linux version is"
    387404        echo "too old to use it."
    388         BUILDVBOXVIDEO=
    389     fi
    390     if [ -n "$BUILDVBOXGUEST" ]; then
    391         begin "Building the main Guest Additions module"
    392         if ! $BUILDVBOXGUEST \
    393             --save-module-symvers /tmp/vboxguest-Module.symvers \
    394             --no-print-directory install >> $LOG 2>&1; then
    395             show_error "Look at $LOG to find out what went wrong"
    396             return 1
    397         fi
    398         succ_msg
    399     fi
    400     if [ -n "$BUILDVBOXSF" ]; then
    401         begin "Building the shared folder support module"
    402         if ! $BUILDVBOXSF \
     405    else
     406        begin "Building the OpenGL support module"
     407        if ! $BUILDINTMP \
    403408            --use-module-symvers /tmp/vboxguest-Module.symvers \
    404             --no-print-directory install >> $LOG 2>&1; then
    405             show_error  "Look at $LOG to find out what went wrong"
    406             return 1
    407         fi
    408         succ_msg
    409     fi
    410     if [ -n "$BUILDVBOXVIDEO" ]; then
    411         begin "Building the OpenGL support module"
    412         if ! $BUILDVBOXVIDEO \
    413             --use-module-symvers /tmp/vboxguest-Module.symvers \
     409            --module-source $MODULE_SRC/vboxvideo \
    414410            --no-print-directory install >> $LOG 2>&1; then
    415411            show_error "Look at $LOG to find out what went wrong"
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