From 5df7b0c28d986b72571df72a5e624c2d6201bf94 Mon Sep 17 00:00:00 2001 From: alve Date: Fri, 13 Oct 2006 21:55:40 +0000 Subject: [PATCH] made SVN revision detection more portable git-svn-id: svn://svn.code.sf.net/p/mmapper/code/trunk/mmapper@99 14c008a5-6e10-0410-bf79-c100e0f1932b --- src/mmapper2.pro | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mmapper2.pro b/src/mmapper2.pro index c64a9a079..c8f3d1542 100644 --- a/src/mmapper2.pro +++ b/src/mmapper2.pro @@ -128,7 +128,11 @@ SOURCES += main.cpp \ ./mapstorage/oldconnection.cpp TARGET = mmapper2 -DEFINES += SVN_REVISION=$$system("svn info | grep Revision | sed s/Revision:\ //") + +SVN_REVISION=$$system("svn info | grep Revision | sed s/Revision:\ //") +!isEmpty(SVN_REVISION) { + DEFINES += SVN_REVISION=$$SVN_REVISION +} RESOURCES += resources/mmapper2.qrc TEMPLATE = app DEPENDPATH += .