File: versionrules

package info (click to toggle)
openscenegraph 1.2.0-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 26,924 kB
  • ctags: 25,229
  • sloc: cpp: 239,326; ansic: 2,178; sh: 1,990; yacc: 548; perl: 237; makefile: 227; lex: 151
file content (29 lines) | stat: -rw-r--r-- 954 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
####################################################################### 
##
##                   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 
####################################################################### 
verbose_version : 
	@if [ "$(VERSION_REVISION)" = "0" ];  then \
		revision=`date +%Y%m%d%H%M`; \
	else \
		revision=$(VERSION_REVISION); \
	fi; \
    echo "Producer_"$(VERSION_MAJOR)"_"$(VERSION_MINOR)"_"$(VERSION_RELEASE)"_release_revision_"$$revision

version : 
	@if [ "$(VERSION_REVISION)" = "0" ];  then \
		revision=`date +%Y%m%d%H%M`; \
	else \
		revision=$(VERSION_REVISION); \
	fi; \
	echo $(VERSION)-$$revision;