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

15 lines
461 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.
#
export RELEASE_SUFFIX=dev
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