dotnet-installer/scripts/build/generate-version.sh

15 lines
462 B
Bash
Raw Normal View History

#!/usr/bin/env bash
#
# Copyright (c) .NET Foundation and contributors. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
#
2016-01-16 01:20:14 +00:00
export RELEASE_SUFFIX=beta
export MAJOR_VERSION=1
export MINOR_VERSION=0
export PATCH_VERSION=0
2016-01-11 23:41:37 +00:00
export COMMIT_COUNT_VERSION=$(printf "%06d" $(git rev-list --count HEAD))
export DOTNET_CLI_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION.$COMMIT_COUNT_VERSION