svnversion is good for versioning builds of specific source revisions. However, sometimes, the build is modified or the svn tree is exported. The following is a basic example of creating a meaningful build number in a Makefile:
SVN_VERSION=$(shell x=$$(svnversion); ([ "$$x" != "exported" ] && echo $$x) || echo $$USER.$$(date +"%Y%0m%0d%0k%0M%0S"))
No comments:
Post a Comment