mirror of https://github.com/WebAssembly/wasi-sdk
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
475 B
23 lines
475 B
6 years ago
|
#!/usr/bin/env bash
|
||
|
set -ex
|
||
|
if [ -n "$1" ]; then
|
||
|
export VERSION="$1"
|
||
|
else
|
||
|
export VERSION=`./version.sh`
|
||
|
fi
|
||
|
|
||
|
PKGDIR=build/wasi-sdk-$VERSION
|
||
|
|
||
|
case "$(uname -s)" in
|
||
|
Linux*) MACHINE=linux;;
|
||
|
Darwin*) MACHINE=macos;;
|
||
|
CYGWIN*) MACHINE=cygwin;;
|
||
|
MINGW*) MACHINE=mingw;;
|
||
|
*) MACHINE="UNKNOWN"
|
||
|
esac
|
||
|
|
||
|
rm -rf $PKGDIR
|
||
|
mkdir -p $PKGDIR/opt
|
||
|
cp -R /opt/wasi-sdk $PKGDIR/opt/
|
||
|
cd build && tar czf wasi-sdk-$VERSION\-$MACHINE.tar.gz wasi-sdk-$VERSION
|