1# Quick makefile hack to update the sub-version number from the svn release 2# 3# Make sure that svn is installed. 4SVN = $(shell which svn 2> /dev/null) 5SUBV = \2 6 7ifneq ($(strip $(SVN)),) 8 SUBV = $(shell svn info 2>&1 | grep Revision | awk '{print "svn" $$2}') 9 10subversion: 11 -@sed -i 's/\(^SUBVERSION :=\)(.*)/\1 $(SUBV)/' version.mak 12else 13subversion: 14 15endif 16 17# For releases (and non-svn) we just strip the sub-version out 18release: 19 -@sed -i 's/\(^SUBVERSION :=\).*/\1/' version.mak 20