Sha256: 3188599cc71b5ba9b0570f9d2c2040ad0ef727c83fb0555c77cb52261c03ce4e

Contents?: true

Size: 414 Bytes

Versions: 6

Compression:

Stored size: 414 Bytes

Contents

#!/bin/bash

# This gets run as a pre-commit hook just prior to a merge to
# determine the new version number.

# Leading zeros are not permitted in strict SemVer
YEAR=`date +"%y" | sed -e 's/^0//'` # Must be < 256 per Microsoft
MONTH=`date +"%m" | sed -e 's/^0//'`

OLD_BUILD=`cut -f3 -d. < VERSION`

NEW_BUILD=$(($OLD_BUILD + 1)) # Monotonically increase the build number

echo $YEAR.$MONTH.$NEW_BUILD > VERSION

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
omnibus-software-23.7.295 .expeditor/determine_version.sh
omnibus-software-23.6.292 .expeditor/determine_version.sh
omnibus-software-23.6.291 .expeditor/determine_version.sh
omnibus-software-23.2.283 .expeditor/determine_version.sh
omnibus-software-23.2.281 .expeditor/determine_version.sh
omnibus-software-22.11.239 .expeditor/determine_version.sh