readlink -f would be better. thanks osx.

This commit is contained in:
Christopher Jeffrey 2014-12-09 13:27:28 -08:00
parent c06753cd20
commit 362ab2b2e6
2 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
#!/bin/sh
root_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/.."
#root_dir="$(readlink -f "$(dirname "$0")")/.."
cd "$root_dir"
os_dir=$(./platform/os.sh osdir)

View File

@ -1,6 +1,7 @@
#!/bin/sh
root_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/.."
#root_dir="$(readlink -f "$(dirname "$0")")/.."
cd "$root_dir"
dir=$(test -n "$1" && echo "$1" || echo "${HOME}/bitcoin")
patch_file="$(pwd)/bitcoin.patch"