From cd3a919b88c401fd86b1f4c853ee60898f2cb24a Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 6 Apr 2011 14:08:51 +0000 Subject: libgats now generates a really basic version.h --- default.bld | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/default.bld b/default.bld index d78fbd3..de34acf 100644 --- a/default.bld +++ b/default.bld @@ -12,7 +12,7 @@ action "all" CXXFLAGS += "-ggdb -Wall"; -target files("src/*.h").replace("src/", "gats/") +target [files("src/*.h").replace("src/", "gats/"), "gats/version.h"] { tag "header-links"; display "symlink"; @@ -23,6 +23,16 @@ target files("src/*.h").replace("src/", "gats/") } } +target "src/version.h" +{ + input ".svn"; + display "svnver"; + profile "build" + { + execute("echo Revision number: `svnversion`; echo \\#ifndef LIBGATS_VC_ID > ${OUTPUT}; echo \\#define LIBGATS_VC_ID \\\"`svnversion`\\\" >> ${OUTPUT}; echo \\#endif >> ${OUTPUT}"); + } +} + target "libgats.a" { rule "lib"; -- cgit v1.2.3