From 8dbb54f9d8e595f4d0cd22bd0e02361ed3ead862 Mon Sep 17 00:00:00 2001 From: Jonathan Lloyd Date: Sat, 17 Feb 2018 15:02:47 +0000 Subject: [PATCH] Add unique prefix to build number --- CHANGELOG.md | 3 +++ scripts/buildno | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5db9eb6..26773c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Changed + - Add a unique(ish) prefix to the build number to distinguish builds made + from the same commit. ## [0.3.1] - 2018-02-04 ### Fixed diff --git a/scripts/buildno b/scripts/buildno index 04ff445..aaea38f 100755 --- a/scripts/buildno +++ b/scripts/buildno @@ -16,11 +16,11 @@ else fi if $UNCOMMITED_CHANGES == "true"; then - SUFFIX="-WIP" + SUFFIX=":WIP" elif ! $IS_RELEASE_COMMIT == "true"; then - SUFFIX="-DEV" + SUFFIX=":DEV" else SUFFIX="" fi -echo "$(git rev-parse --short HEAD)$SUFFIX" +echo "BUILD:$(date | md5sum | rev | cut -c20- | rev):$(git rev-parse --short HEAD)$SUFFIX"