Added support for versioning to the build system

This commit is contained in:
Don BURNS
2003-03-18 18:40:19 +00:00
parent 33ad8d8cb0
commit a5d713ba1f
3 changed files with 53 additions and 1 deletions

21
Make/versionrules Normal file
View File

@@ -0,0 +1,21 @@
#######################################################################
##
## VERSIONING SEMANTICS
##
## Version consistes of <major> . <minor> . <release> - <revision>
## Where:
## major : Production (0 = pre-production)
## minor : 0-7 = Production minor, 8 = Alpha, 9 = Beta
## release : Release tag
## revision: Release revision - 0 = development (cutting edge).
##
##
## 'make version' will print the version with a
#######################################################################
version :
@if [ "$(VERSION_REVISION)" = "0" ]; then\
release=`date +%Y%m%e%H%M`;\
else\
release=$(VERSION_REVISION);\
fi;\
echo $(VERSION)-$$release;