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.
22 lines
450 B
22 lines
450 B
#!/usr/bin/env sh
|
|
set -ex
|
|
if [ -n "$1" ]; then
|
|
OUTDIR=$1
|
|
else
|
|
OUTDIR=$PWD/dist
|
|
fi
|
|
|
|
if [ -n "$2" ]; then
|
|
VERSION="$2"
|
|
else
|
|
VERSION=`./version.sh`
|
|
fi
|
|
|
|
rm -rf build/pkg
|
|
mkdir -p build/pkg/opt
|
|
mkdir -p build/pkg/DEBIAN
|
|
sed -e s/VERSION/$VERSION/ wasi-sdk.control > build/pkg/DEBIAN/control
|
|
cp -R /opt/wasi-sdk build/pkg/opt/
|
|
cd build && dpkg-deb -b pkg wasi-sdk_$VERSION\_amd64.deb && cd ..
|
|
mv build/wasi-sdk_$VERSION\_amd64.deb $OUTDIR/
|