# HG changeset patch # User Mike Becker # Date 1346165072 -7200 # Node ID 51d6e45a759298f287df96eaa25a9aca2cd9fc63 # Parent 27c3c1c6b768195a818607816a50c2cc23067f7c changed version output slightly diff -r 27c3c1c6b768 -r 51d6e45a7592 .cproject --- a/.cproject Mon Feb 13 19:10:00 2012 +0100 +++ b/.cproject Tue Aug 28 16:44:32 2012 +0200 @@ -89,8 +89,13 @@ - - + + + + + + + @@ -121,4 +126,6 @@ + + diff -r 27c3c1c6b768 -r 51d6e45a7592 Makefile --- a/Makefile Mon Feb 13 19:10:00 2012 +0100 +++ b/Makefile Tue Aug 28 16:44:32 2012 +0200 @@ -37,6 +37,8 @@ CONF = gcc #endif +VERSION_PREFIX=1.0. + include ${CONF}.mk .PHONY: setup run-compile teardown @@ -54,7 +56,7 @@ mkdir -p ${BUILDDIR} rm -f ${BUILDDIR}cline.o mv cline.h cline.src - cat cline.src | sed "s/VERSION.*/VERSION=\"$(shell hg identify -n) ($(shell hg identify -i))\";/g" > cline.h + cat cline.src | sed "s/VERSION.*/VERSION=\"${VERSION_PREFIX}$(shell hg identify -n) ($(shell hg identify -i))\";/g" > cline.h teardown: rm -f cline.h diff -r 27c3c1c6b768 -r 51d6e45a7592 cline.c --- a/cline.c Mon Feb 13 19:10:00 2012 +0100 +++ b/cline.c Tue Aug 28 16:44:32 2012 +0200 @@ -56,7 +56,7 @@ } int exit_with_version(settings_t* settings) { - printf("cline - Revision: %s", VERSION); + printf("cline - Revision: %s\n", VERSION); destroy_settings_t(settings); return 0; }