mirror of
https://github.com/urbit/shrub.git
synced 2024-12-21 01:41:37 +03:00
f891bef69f
Historically Vere has used a simple 'vx.y.z' versioning scheme that
predates the monorepo structure introduced in 7ce50ad
. Going forward
it's expected that our blessed runtime king/serf binaries will follow
the scheme 'urbit-vx.y.z' to disambiguate them from other repository
subprojects.
This renames Vere release tarballs as their version followed by their
target platform. So with the updated tag scheme, instead of e.g.
'urbit-linux64-vx.y.z.tgz' these will appear along the lines of
'urbit-vx.y.z-linux64.tgz'.
34 lines
506 B
Bash
Executable File
34 lines
506 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
if [ -n "${TRAVIS_TAG-}" ]
|
|
then
|
|
ver="$TRAVIS_TAG"
|
|
elif [ -n "${TRAVIS_COMMIT-}" ]
|
|
then
|
|
ver="$TRAVIS_COMMIT"
|
|
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/$ver-$plat
|
|
traced cp -r cross/$plat/* $tmp/$ver-$plat
|
|
|
|
echo "packaging release/$ver-$plat.tgz"
|
|
(cd $tmp; tar cz $ver-$plat) > release/$ver-$plat.tgz
|
|
|
|
rm -rf $tmp
|
|
done
|