Skip to content
Permalink
Browse files

Try fixing macOS build when coreutils is not installed

  • Loading branch information...
milot-mirdita committed Oct 30, 2019
1 parent 49a7568 commit 88cb8270068f7c1c9ff83429ebcf6b03324302a1
Showing with 16 additions and 2 deletions.
  1. +16 −2 util/build_osx.sh
@@ -1,6 +1,20 @@
#!/bin/sh -e
REPO="$(greadlink -f $1)"
BUILD="$(greadlink -f $2)"
abspath() {
if [ -d "$1" ]; then
(cd "$1"; pwd)
elif [ -f "$1" ]; then
if [ -z "${1##*/*}" ]; then
echo "$(cd "${1%/*}"; pwd)/${1##*/}"
else
echo "$(pwd)/$1"
fi
elif [ -d "$(dirname "$1")" ]; then
echo "$(cd "$(dirname "$1")"; pwd)/$(basename "$1")"
fi
}

REPO="$(abspath "$1")"
BUILD="$(abspath "$2")"
BINARY_NAME="${3:-mmseqs}"

if [ ! -d "$REPO" ]; then

0 comments on commit 88cb827

Please sign in to comment.
You can’t perform that action at this time.