Skip to content

Commit f967f43

Browse files
authored
Don't include opt/wasi-sdk paths in tar archive (WebAssembly#64)
Fixes WebAssembly#57
1 parent 73d43d9 commit f967f43

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

tar_from_installation.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/usr/bin/env bash
22
set -ex
33
if [ -n "$1" ]; then
4-
export VERSION="$1"
4+
VERSION="$1"
55
else
6-
export VERSION=`./version.sh`
6+
VERSION=`./version.sh`
77
fi
88

99
PKGDIR=build/wasi-sdk-$VERSION
@@ -17,8 +17,7 @@ case "$(uname -s)" in
1717
esac
1818

1919
rm -rf $PKGDIR
20-
mkdir -p $PKGDIR/opt
21-
cp -R /opt/wasi-sdk $PKGDIR/opt/
22-
cd build &&
23-
tar czf wasi-sdk-$VERSION\-$MACHINE.tar.gz wasi-sdk-$VERSION &&
24-
tar cz -C compiler-rt -f libclang_rt.builtins-wasm32-wasi-$VERSION.tar.gz lib/wasi
20+
cp -R /opt/wasi-sdk $PKGDIR
21+
cd build
22+
tar czf wasi-sdk-$VERSION\-$MACHINE.tar.gz wasi-sdk-$VERSION
23+
tar czf libclang_rt.builtins-wasm32-wasi-$VERSION.tar.gz -C compiler-rt lib/wasi

0 commit comments

Comments
 (0)