Fix release script
This commit is contained in:
parent
9982311c87
commit
d86dc9b1d7
@ -37,12 +37,12 @@ else
|
||||
fi
|
||||
|
||||
mkdir out
|
||||
cp "$(ecabal new-exec -w ghc-${GHC_VERSION} --verbose=0 --offline sh -- -c 'command -v ghcup')" .
|
||||
ver=$(./ghcup --numeric-version)
|
||||
binary=$(ecabal new-exec -w ghc-${GHC_VERSION} --verbose=0 --offline sh -- -c 'command -v ghcup')
|
||||
ver=$("${binary}" --numeric-version)
|
||||
if [ "${OS}" = "DARWIN" ] ; then
|
||||
strip ./ghcup
|
||||
strip "${binary}"
|
||||
else
|
||||
strip -s ./ghcup
|
||||
strip -s "${binary}"
|
||||
fi
|
||||
cp ghcup out/${ARTIFACT}-${ver}
|
||||
cp "${binary}" out/${ARTIFACT}-${ver}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user