X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=share%2Fgenbuild.sh;fp=share%2Fgenbuild.sh;h=7eee927b6b8a5c37481ea101fa76e39e78363bbe;hp=0dff4ba552b5ccac38c79f401f3f1335ce9b5c7b;hb=37db5ac3c6caf124efef6f8efe3683803a94c7e6;hpb=11e551d60b8d8036537294e803e8824196e07806 diff --git a/share/genbuild.sh b/share/genbuild.sh index 0dff4ba..7eee927 100755 --- 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