Installer tweaks

This commit is contained in:
2021-12-30 00:53:08 +01:00
parent 538383c33d
commit 5a1268aed6
5 changed files with 45 additions and 14 deletions

View File

@@ -7,13 +7,18 @@ fi
if [ -z "$VERSION" ]; then
VERSION="$(git describe --tags)"
PATH="$PWD/tools:$PATH"
if [ -z "$VERSION" ]; then
echo "Could not parse version from git. Export VERSION if you are building manually."
exit 1
fi
fi
echo "* Version: $VERSION"
if [ ! -z "$FLAVOR" ]; then
VERSION="${VERSION}-${FLAVOR}"
echo "* Flavor: $FLAVOR"
fi
if [ -z "$VERSION" ]; then
echo "Could not parse version from git. Export VERSION if you are building manually."
exit 1
fi
PATH="$PWD/tools:$PATH"
if [ -z $DESTINATION ]; then
DESTINATION="release/$VERSION"