git://git.novaco.in
/
novacoin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix script path detection on macOS
[novacoin.git]
/
share
/
genbuild.sh
diff --git
a/share/genbuild.sh
b/share/genbuild.sh
index
0dff4ba
..
7eee927
100755
(executable)
--- a/
share/genbuild.sh
+++ b/
share/genbuild.sh
@@
-1,7
+1,11
@@
#!/bin/sh
+realpath() {
+ [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
+}
+
PREVDIR=$(pwd)
-SCRIPT=$(readlink -f $0)
+SCRIPT=$(realpath $0)
SCRIPTPATH=`dirname $SCRIPT`
if [ $# -gt 0 ]; then