Put version string creation into one file because OSX seems to have problems with...
authorHenning Rogge <rogge@fgan.de>
Wed, 14 Jan 2009 18:19:47 +0000 (19:19 +0100)
committerHenning Rogge <rogge@fgan.de>
Wed, 14 Jan 2009 18:19:47 +0000 (19:19 +0100)
inside the Makefile.

Makefile

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