comparison recpt1/Makefile @ 73:c44e16dbb0e2

hg no longer accepts '#' in a template
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Wed, 18 Nov 2009 13:12:44 +0900
parents 57bb2c26198d
children
comparison
equal deleted inserted replaced
72:c9b41c438a93 73:c44e16dbb0e2
24 24
25 $(DEPEND): version.h 25 $(DEPEND): version.h
26 $(CC) -MM $(OBJS:.o=.c) $(CPPFLAGS) > $@ 26 $(CC) -MM $(OBJS:.o=.c) $(CPPFLAGS) > $@
27 27
28 version.h: 28 version.h:
29 revh=`hg parents --template 'const char *version = "r#rev#:#node|short# (#date|isodate#)";\n' 2>/dev/null`; \ 29 revh=`hg parents --template 'const char *version = "r{rev}:{node|short} ({date|isodate})";\n' 2>/dev/null`; \
30 if [ -n "$$revh" ] ; then \ 30 if [ -n "$$revh" ] ; then \
31 echo "$$revh" > $@; \ 31 echo "$$revh" > $@; \
32 else \ 32 else \
33 echo "const char *version = \"$(RELEASE_VERSION)\";" > $@; \ 33 echo "const char *version = \"$(RELEASE_VERSION)\";" > $@; \
34 fi 34 fi