From 58b69e7eb9be29c60e45d46a880b391e3809e76f Mon Sep 17 00:00:00 2001 From: marha Date: Fri, 18 Sep 2009 14:46:17 +0000 Subject: Changes for making it possible to have spaces in the MHMAKECONF environment variable. --- tools/mhmake/src/fileinfo.h | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'tools/mhmake/src/fileinfo.h') diff --git a/tools/mhmake/src/fileinfo.h b/tools/mhmake/src/fileinfo.h index c44041d30..227ba5e1f 100644 --- a/tools/mhmake/src/fileinfo.h +++ b/tools/mhmake/src/fileinfo.h @@ -53,6 +53,10 @@ extern bool g_PrintMultipleDefinedRules; extern const string g_EmptyString; extern const string g_SpaceString; +extern const string g_QuoteString; + +string QuoteFileName(const string &Filename); +string UnquoteFileName(const string &Filename); #define TIMESAFETY 3 class mh_time @@ -138,12 +142,12 @@ public: { m_IsPhony=false; m_IsBuild=false; - m_AbsFileName=AbsFileName; + m_AbsFileName=UnquoteFileName(AbsFileName); InvalidateDate(); m_CommandsMd5_32=Md5_32; #ifdef _DEBUG if (g_PrintAdditionalInfo) - cout << "Initialising Md5 of "<