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