提交 daff8378 作者: 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: 's avatarSteven Allen <steven@stebalien.com>
上级 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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论