VirtualBox

Changeset 41827 in vbox for trunk/tools/bin


Ignore:
Timestamp:
Jun 19, 2012 2:32:29 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
78652
Message:

gen-slickedit-workspace.sh: Introduced "--slickedit-config <DIR>" to point to the right configuration, if needed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/bin/gen-slickedit-workspace.sh

    r41478 r41827  
    369369    # Probe the slickedit user config, picking the most recent version.
    370370    #
    371     if test -d "${HOME}/Library/Application Support/Slickedit"; then
    372         MY_SLICKDIR_="${HOME}/Library/Application Support/Slickedit"
    373         MY_USERCPP_H="unxcpp.h"
    374         MY_VSLICK_DB="vslick.stu"
    375     elif test -d "${HOMEDRIVE}${HOMEPATH}/Documents/My SlickEdit Config"; then
    376         MY_SLICKDIR_="${HOMEDRIVE}${HOMEPATH}/Documents/My SlickEdit Config"
    377         MY_USERCPP_H="usercpp.h"
    378         MY_VSLICK_DB="vslick.sta"
     371    if test -z "${MY_SLICK_CONFIG}"; then
     372        if test -d "${HOME}/Library/Application Support/Slickedit"; then
     373            MY_SLICKDIR_="${HOME}/Library/Application Support/Slickedit"
     374            MY_USERCPP_H="unxcpp.h"
     375            MY_VSLICK_DB="vslick.stu"
     376        elif test -d "${HOMEDRIVE}${HOMEPATH}/Documents/My SlickEdit Config"; then
     377            MY_SLICKDIR_="${HOMEDRIVE}${HOMEPATH}/Documents/My SlickEdit Config"
     378            MY_USERCPP_H="usercpp.h"
     379            MY_VSLICK_DB="vslick.sta"
     380        else
     381            MY_SLICKDIR_="${HOME}/.slickedit"
     382            MY_USERCPP_H="unxcpp.h"
     383            MY_VSLICK_DB="vslick.stu"
     384        fi
    379385    else
    380         MY_SLICKDIR_="${HOME}/.slickedit"
    381         MY_USERCPP_H="unxcpp.h"
    382         MY_VSLICK_DB="vslick.stu"
     386        MY_SLICKDIR_="${MY_SLICK_CONFIG}"
     387        if test -n "${MY_WINDOWS_HOST}"; then
     388            MY_USERCPP_H="usercpp.h"
     389            MY_VSLICK_DB="vslick.sta"
     390        else
     391            MY_USERCPP_H="unxcpp.h"
     392            MY_VSLICK_DB="vslick.stu"
     393        fi
     394        # MacOS: Implement me!
    383395    fi
    384396
     
    695707            ;;
    696708
     709        --slickedit-config)
     710            MY_SLICK_CONFIG="$1"
     711            shift
     712            ;;
     713
    697714        # usage
    698715        --h*|-h*|-?|--?)
    699             echo "usage: $0 [--rootdir <rootdir>] [--outdir <outdir>] [--project-base <prefix>] [--workspace <name>] [--minimal]"
     716            echo "usage: $0 [--rootdir <rootdir>] [--outdir <outdir>] [--project-base <prefix>] [--workspace <name>] [--minimal] [--slickedit-config <DIR>]"
    700717            echo ""
    701718            echo "If --outdir is specified, you must specify a --rootdir relative to it as well."
     
    781798    --end-includes \
    782799    "src/recompiler" \
    783     "src/VBox/VMM/include/REMInternal.h" \
     800    "src/VBox/VMM/REMInternal.h" \
    784801    "src/VBox/VMM/VMMAll/REMAll.cpp"
    785802
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette