From bdc77990a141ae3c2783c4739a113f7d50ff8828 Mon Sep 17 00:00:00 2001 From: giantpune Date: Sat, 28 May 2011 09:10:50 +0000 Subject: [PATCH] * nandBinCheck: add SVN identification crap git-svn-id: http://wiiqt.googlecode.com/svn/trunk@100 389f4c8b-5dfe-645f-db0e-df882bc27289 --- nandBinCheck/main.cpp | 13 +++++++++---- nandBinCheck/nandBinCheck.pro | 10 ++++++++++ 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/nandBinCheck/main.cpp b/nandBinCheck/main.cpp index d697fb9..e4d32c2 100644 --- a/nandBinCheck/main.cpp +++ b/nandBinCheck/main.cpp @@ -1,3 +1,6 @@ + +#include "svnrev.h" + #include "../WiiQt/includes.h" #include "../WiiQt/nandbin.h" #include "../WiiQt/sharedcontentmap.h" @@ -1312,14 +1315,16 @@ int main( int argc, char *argv[] ) hConsole = GetStdHandle( STD_OUTPUT_HANDLE ); #endif qInstallMsgHandler( DebugHandler ); - qCritical() << "** nandBinCheck : Wii nand info tool **"; - qCritical() << " from giantpune"; - qCritical() << " built:" << __DATE__ << __TIME__; - args = QCoreApplication::arguments(); + args = QCoreApplication::arguments(); if( args.contains( "-nocolor", Qt::CaseInsensitive ) ) color = false; + qCritical() << "** nandBinCheck : Wii nand info tool **"; + qCritical() << " from giantpune"; + qCritical() << " svn r:" << qPrintable( CleanSvnStr( SVN_REV_STR ) ); + qCritical() << " built:" << __DATE__ << __TIME__; + if( args.contains( "-about", Qt::CaseInsensitive ) ) About(); diff --git a/nandBinCheck/nandBinCheck.pro b/nandBinCheck/nandBinCheck.pro index 9a6501a..97514bc 100644 --- a/nandBinCheck/nandBinCheck.pro +++ b/nandBinCheck/nandBinCheck.pro @@ -43,3 +43,13 @@ HEADERS += ../WiiQt/tiktmd.h \ FORMS += \ ../WiiQt/settingtxtdialog.ui + +# create new svnrev.h +unix { + system( chmod 755 ../tools/makesvnrev.sh ) + system( ../tools/makesvnrev.sh ) +} + +win32 { + system( "..\\tools\\SubWCRev.exe" "." "..\\tools\\svnrev_template.h" ".\\svnrev.h" ) +}