Update CMakeLists.txt - play with openssl
[novacoin.git] / share / genbuild.sh
index 0dff4ba..f03382c 100755 (executable)
@@ -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