Merge branch 'jt/extraction' (#2217)

* jt/extraction:
  build: make release tarballs extract to directory

Signed-off-by: Jared Tobin <jared@tlon.io>
This commit is contained in:
Jared Tobin 2020-01-31 11:24:41 +04:00
commit 1e3a1434e0
No known key found for this signature in database
GPG Key ID: 0E4647D58F8A69E4

View File

@ -12,12 +12,22 @@ else
ver="$(git rev-parse HEAD)"
fi
traced () {
echo '$' "$@" >&2; "$@"
}
mkdir -p release
for plat in linux64 darwin
do
sh/cross urbit "$plat"
tmp=$(mktemp -d)
mkdir -p $tmp/urbit-$plat-$ver
traced cp -r cross/$plat/* $tmp/urbit-$plat-$ver
echo "packaging release/urbit-$plat-$ver.tgz"
(cd cross/$plat; tar cz .) > release/urbit-$plat-$ver.tgz
(cd $tmp; tar cz urbit-$plat-$ver) > release/urbit-$plat-$ver.tgz
rm -rf $tmp
done