From ca56bee92129fea4d6f9d9c60d663885a359885e Mon Sep 17 00:00:00 2001 From: defnax Date: Tue, 1 Jun 2010 22:46:56 +0000 Subject: [PATCH] added svn_revision.bat file to update easier the rsversion.h under Windows, and modifyd the mingw32make.bat before compiling write the latest revision to rsversion.h git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3049 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/mingw32make.bat | 14 +++++++++++--- libretroshare/src/svn_revision.bat | 2 ++ libretroshare/src/util/rsversion.in | 17 +++++++++++++++++ 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 libretroshare/src/svn_revision.bat create mode 100644 libretroshare/src/util/rsversion.in diff --git a/libretroshare/src/mingw32make.bat b/libretroshare/src/mingw32make.bat index 42162b1e3..11c7bdd92 100644 --- a/libretroshare/src/mingw32make.bat +++ b/libretroshare/src/mingw32make.bat @@ -1,3 +1,11 @@ -mingw32-make -f Makefile %1 -if errorlevel 1 goto end -:end +set QTDIR=d:\qt\2010.01 +set MINGW=%QTDIR%\mingw + +set PATH=%QTDIR%\qt\bin;%QTDIR%\bin;%MINGW%\bin;%PATH% + +"D:\Programme\TortoiseSVN\bin\SubWCRev" . util\rsversion.in util\rsversion.h + +qmake libretroshare.pro + +mingw32-make + diff --git a/libretroshare/src/svn_revision.bat b/libretroshare/src/svn_revision.bat new file mode 100644 index 000000000..d828ece90 --- /dev/null +++ b/libretroshare/src/svn_revision.bat @@ -0,0 +1,2 @@ +@echo off +"D:\Programme\TortoiseSVN\bin\SubWCRev" . util\rsversion.in util\rsversion.h \ No newline at end of file diff --git a/libretroshare/src/util/rsversion.in b/libretroshare/src/util/rsversion.in new file mode 100644 index 000000000..0b5adc62a --- /dev/null +++ b/libretroshare/src/util/rsversion.in @@ -0,0 +1,17 @@ +/* + * rsversion.h + * + * Created on: Jun 23, 2009 + * Author: alexandrut + */ + +#include + +#define LIB_VERSION "0.5.1" +#define SVN_REVISION "Revision: $WCREV$" + +namespace RsUtil { + + std::string retroshareVersion(); + +} \ No newline at end of file