VirtualBox

Changeset 39321 in vbox for trunk/src/VBox/HostDrivers/linux


Ignore:
Timestamp:
Nov 16, 2011 9:40:46 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/HostDrivers/linux/build_in_tmp

    r32183 r39321  
    1616#
    1717
    18 # Set the build type
    19 export BUILD_TYPE=_BUILDTYPE_
    20 
    2118# find a unique temp directory
    2219num=0
     
    3330done
    3431
    35 if [ "$1" = "--save-module-symvers" ]; then
    36   shift
    37   SAVE_MOD_SYMVERS="$1"
    38   shift
    39 fi
    40 
    41 if [ "$1" = "--use-module-symvers" ]; then
    42   shift
    43   USE_MOD_SYMVERS="$1"
    44   shift
    45 fi
     32while true; do
     33    if [ "$1" = "--save-module-symvers" ]; then
     34      shift
     35      SAVE_MOD_SYMVERS="$1"
     36      shift
     37    elif [ "$1" = "--use-module-symvers" ]; then
     38      shift
     39      USE_MOD_SYMVERS="$1"
     40      shift
     41    elif [ "$1" = "--module-source" ]; then
     42      shift
     43      MODULE_SOURCE="$1"
     44      shift
     45    else
     46      break
     47    fi
     48done
    4649
    4750# copy
    48 cp -a ${0%/*}/* $tmpdir/
     51if [ -n "$MODULE_SOURCE" ]; then
     52  cp -a "$MODULE_SOURCE"/* $tmpdir/
     53else
     54  cp -a ${0%/*}/* $tmpdir/
     55fi
    4956if [ -n "$USE_MOD_SYMVERS" ]; then
    5057  cp $USE_MOD_SYMVERS $tmpdir/Module.symvers
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