baum

changeset 28:ed3eb4b497e5

version in Makefile is extracted from sources now
author meillo@marmaro.de
date Fri, 22 Feb 2008 13:45:22 +0100
parents 1c3dd1e88bdf
children 88a51653db83
files Makefile
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/Makefile	Thu Feb 21 10:09:36 2008 +0100
     1.2 +++ b/Makefile	Fri Feb 22 13:45:22 2008 +0100
     1.3 @@ -2,7 +2,8 @@
     1.4  
     1.5  
     1.6  NAME=baum
     1.7 -VERSION = 0.1
     1.8 +# extracts VERSION from the sources
     1.9 +VERSION=$(shell cat *.c | sed -n '/define VERSION/ s/.*"\([^"]*\)".*/\1/p'  )
    1.10  NV=${NAME}-${VERSION}
    1.11  
    1.12  DOCS=LICENSE README ChangeLog TODO examples