Commit daff8378 authored by Steven Allen's avatar Steven Allen

make: fix building source tarball on macos

Unfortunately, `readlink -f` doesn't work on macos. This change *manually*
converts a relative path to an absolute path.

fixes #5859

License: MIT
Signed-off-by: default avatarSteven Allen <steven@stebalien.com>
parent 3f6925df
......@@ -5,7 +5,11 @@
set -euo pipefail
IFS=$'\n\t'
OUTPUT="$(readlink -f "${1:-go-ipfs-source.tar.gz}")"
# readlink doesn't work on macos
OUTPUT="${1:-go-ipfs-source.tar.gz}"
if ! [[ "$OUTPUT" = /* ]]; then
OUTPUT="$PWD/$OUTPUT"
fi
TMPDIR="$(mktemp -d)"
NEWIPFS="$TMPDIR/src/github.com/ipfs/go-ipfs"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment