VirtualBox

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


Ignore:
Timestamp:
Oct 20, 2015 8:39:37 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
103523
Message:

Installers/linux: cleaner script for getting shell script location folders.

Location:
trunk/src/VBox/HostDrivers/linux
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/linux/export_modules

    r57327 r58324  
    1515#
    1616
     17# The below is GNU-specific.  See VBox.sh for the longer Solaris/OS X version.
     18TARGET=`readlink -e -- "${0}"` || exit 1
     19MY_DIR="${TARGET%/[!/]*}"
     20
    1721if [ -z "$1" ]; then
    1822    echo "Usage: $0 <filename.tar.gz> [--without-hardening]"
     
    2933PATH_OUT=$PATH_TMP
    3034FILE_OUT="`cd \`dirname $1\`; pwd`/`basename $1`"
    31 PATH_ROOT="`cd \`dirname $0\`/../../../..; pwd`"
     35PATH_ROOT="${MY_DIR}/../../../..; pwd`"
    3236PATH_LINUX="$PATH_ROOT/src/VBox/HostDrivers/linux"
    3337PATH_VBOXDRV="$PATH_ROOT/src/VBox/HostDrivers/Support"
  • trunk/src/VBox/HostDrivers/linux/load.sh

    r58264 r58324  
    1616#
    1717
    18 MY_DIR=`dirname "$0"`
    19 MY_DIR=`cd "${MY_DIR}" && pwd`
    20 if [ ! -d "${MY_DIR}" ]; then
    21     echo "Cannot find ${MY_DIR} or it's not a directory..."
    22     exit 1;
    23 fi
     18# The below is GNU-specific.  See VBox.sh for the longer Solaris/OS X version.
     19TARGET=`readlink -e -- "${0}"` || exit 1
     20MY_DIR="${TARGET%/[!/]*}"
    2421
    2522set -e
  • trunk/src/VBox/HostDrivers/linux/loadall.sh

    r58264 r58324  
    1616#
    1717
    18 MY_DIR=`dirname "$0"`
    19 MY_DIR=`cd "${MY_DIR}" && pwd`
    20 if [ ! -d "${MY_DIR}" ]; then
    21     echo "Cannot find ${MY_DIR} or it's not a directory..."
    22     exit 1;
    23 fi
     18# The below is GNU-specific.  See VBox.sh for the longer Solaris/OS X version.
     19TARGET=`readlink -e -- "${0}"` || exit 1
     20MY_DIR="${TARGET%/[!/]*}"
    2421
    2522if test ${#} -eq 0; then
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