X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=share%2Fgenbuild.sh;h=f03382c010c1308f1acfa78053944b0625e481d5;hb=HEAD;hp=0dff4ba552b5ccac38c79f401f3f1335ce9b5c7b;hpb=f933bb6282b78bd807e23b667d2bd23a34ffa941;p=novacoin.git diff --git a/share/genbuild.sh b/share/genbuild.sh index 0dff4ba..f03382c 100755 --- a/share/genbuild.sh +++ b/share/genbuild.sh @@ -1,7 +1,11 @@ -#!/bin/sh +#!/bin/bash + +realpath() { + [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" +} PREVDIR=$(pwd) -SCRIPT=$(readlink -f $0) +SCRIPT=$(realpath $0) SCRIPTPATH=`dirname $SCRIPT` if [ $# -gt 0 ]; then