commit 54d734f6a4f3e13e906e8edb8ce3e10caa4bec25
parent 205221226f750700f4a0adc077c94d1185f8dd89
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Sun, 27 Mar 2016 19:35:19 -0400
mac os compatibility fixes in scripts
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/go.sh b/test/go.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-DIR=`readlink -f $0 | xargs dirname`
+DIR=`cd $(dirname "$0"); pwd`
QBE=$DIR/../src/qbe
TMP=/tmp/qbe.zzzz
diff --git a/tools/abifuzz.sh b/tools/abifuzz.sh
@@ -1,7 +1,7 @@
#!/bin/sh
OCAMLC=${OCAMLC:-/usr/bin/ocamlc}
-DIR=`readlink -f $0 | xargs dirname`
+DIR=`cd $(dirname "$0"); pwd`
QBE=$DIR/../src/qbe
failure() {