diff options
author | Eliot Lear <lear@cisco.com> | 2017-10-23 14:44:12 +0200 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-10-23 18:31:22 +0000 |
commit | 6014bfe6fc06786cd074bd66cda210b9aafa7d36 (patch) | |
tree | fe23c98a7133d3dd6f8e36cb8d8b553e9c6f1b17 /tools | |
parent | bc924b628365480f1b2dd5281b8657a3ad3d1eac (diff) |
Get program to the right working directory.
Otherwise patches breaks.
Change-Id: Ief735dc949eaefa3515cc0a5936e0a2735cb0241
Reviewed-on: https://code.wireshark.org/review/24035
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/macos-setup.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/macos-setup.sh b/tools/macos-setup.sh index 787f2256e5..a76ff3271e 100755 --- a/tools/macos-setup.sh +++ b/tools/macos-setup.sh @@ -2651,6 +2651,14 @@ else DO_MV="sudo mv" fi +# This script is meant to be run in the source root. The following +# code will attempt to get you there, but is not perfect (particulary +# if someone copies the script). + +dir=`dirname $0` +cd $dir/.. + +# # # If we have SDKs available, the default target OS is the major version # of the one we're running; get that and strip off the third component |