fix tar_from_installation.sh and dist target

pull/126/head
Vladimir Vukicevic 6 years ago
parent 3307f2d802
commit 2bde8b98f7

1
.gitignore vendored

@ -1 +1,2 @@
build build
dist

@ -193,7 +193,7 @@ package: build/package.BUILT
build/package.BUILT: build strip build/package.BUILT: build strip
mkdir -p dist mkdir -p dist
command -v dpkg-deb >/dev/null && ./deb_from_installation.sh $(shell pwd)/dist || true command -v dpkg-deb >/dev/null && ./deb_from_installation.sh $(shell pwd)/dist || true
./tar_from_installation.sh $(shell pwd)/dist ./tar_from_installation.sh "$(shell pwd)/dist" "$(VERSION)" "$(PATH_PREFIX)"
touch build/package.BUILT touch build/package.BUILT
.PHONY: default clean build strip package check .PHONY: default clean build strip package check

@ -1,15 +1,19 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -ex set -ex
OUTDIR=$PWD/dist
VERSION=`./version.sh`
INDIR=/opt/wasi-sdk
if [ -n "$1" ]; then if [ -n "$1" ]; then
OUTDIR=$1 OUTDIR=$1
else
OUTDIR=$PWD/dist
fi fi
if [ -n "$2" ]; then if [ -n "$2" ]; then
VERSION="$2" VERSION="$2"
else fi
VERSION=`./version.sh`
if [ -n "$3" ]; then
INDIR="$3"
fi fi
PKGDIR=build/wasi-sdk-$VERSION PKGDIR=build/wasi-sdk-$VERSION
@ -23,7 +27,7 @@ case "$(uname -s)" in
esac esac
rm -rf $PKGDIR rm -rf $PKGDIR
cp -R /opt/wasi-sdk $PKGDIR cp -R $INDIR $PKGDIR
cd build cd build
tar czf $OUTDIR/wasi-sdk-$VERSION\-$MACHINE.tar.gz wasi-sdk-$VERSION tar czf $OUTDIR/wasi-sdk-$VERSION\-$MACHINE.tar.gz wasi-sdk-$VERSION

Loading…
Cancel
Save