1
0

build: workaround for 'realpath' missing on macOS

This commit is contained in:
SomberNight
2020-02-11 16:06:32 +01:00
parent 4cec098d2d
commit 5b84e714f2
3 changed files with 8 additions and 6 deletions

View File

@@ -107,6 +107,12 @@ function host_strip()
fi
}
# on MacOS, there is no realpath by default
if ! [ -x "$(command -v realpath)" ]; then
function realpath() {
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}
fi
export SOURCE_DATE_EPOCH=1530212462