fixup the Makefile such that it tolerates the string "changeset" in the commit message,
authorHannes Gredler <hannes@gredler.at>
Tue, 19 May 2009 18:18:59 +0000 (20:18 +0200)
committerHannes Gredler <hannes@gredler.at>
Tue, 19 May 2009 18:18:59 +0000 (20:18 +0200)
like it happens when backing out a changeset.

Makefile

index 1795326..2d78866 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -76,7 +76,7 @@ show-ignored-warnings:
 src/builddata.c:
        @$(RM) "$@"
        @echo "#include \"defs.h\"" >> "$@"
-       @echo "const char olsrd_version[] = \"olsr.org - $(VERS)`hg log -r tip|grep changeset|sed -e s/changeset:\ */\ changeset\ /`\";"  >> "$@"
+       @echo "const char olsrd_version[] = \"olsr.org - $(VERS)`hg log -r tip|grep -E "^changeset:"|sed -e s/changeset:\ */\ changeset\ /`\";"  >> "$@"
        @date +"const char build_date[] = \"%Y-%m-%d %H:%M:%S\";" >> "$@"
        @echo "const char build_host[] = \"$(shell hostname)\";" >> "$@"