ianw1974 / zimbra-build-scripts

Zimbra Build Helper Script - makes it easier to build Zimbra
MIT License
58 stars 23 forks source link

Add auto-update version number during build #51

Closed ianw1974 closed 10 months ago

ianw1974 commented 10 months ago

Auto-updates version number in config.build file during build process. Previously the config.build file defaulted to 0001 for the version number. It still does, however, the script changes this to make it a combination of the current yearly quarter followed by the current year. The script determines based on the calendar month which quarter it is, so:

Jan - Mar = 01
Apr - Jun = 02
Jul - Sep = 03
Oct - Dec = 04

the last two digits of the year make up the remainder of the BUILD_NO. An example for builds created in October 2023, would be 0423.