aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/src/build.cpp
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-04-29 09:58:14 +0000
committermarha <marha@users.sourceforge.net>2011-04-29 09:58:14 +0000
commit88a78ebea08af461224f815a8380ea5c54186f43 (patch)
tree54360a8cf75f48f1604d16d6cacbe72c9d0fec33 /tools/mhmake/src/build.cpp
parent534bc3bc51bbb79d45bcfa1254ca3f6c5d282cbe (diff)
downloadvcxsrv-88a78ebea08af461224f815a8380ea5c54186f43.tar.gz
vcxsrv-88a78ebea08af461224f815a8380ea5c54186f43.tar.bz2
vcxsrv-88a78ebea08af461224f815a8380ea5c54186f43.zip
Solved problem if last character not echoed in echo command.
Solved linux warning Added option to disable checking of start directory.
Diffstat (limited to 'tools/mhmake/src/build.cpp')
-rw-r--r--tools/mhmake/src/build.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/mhmake/src/build.cpp b/tools/mhmake/src/build.cpp
index 5976a8632..f8f341753 100644
--- a/tools/mhmake/src/build.cpp
+++ b/tools/mhmake/src/build.cpp
@@ -393,6 +393,8 @@ mh_pid_t mhmakefileparser::MakeDirsCommand(const string &Params) const
for (size_t i=0; i<NrDirs; i++)
{
fileinfo* pDir=Dirs[i];
+ if (pDir->GetName()=="-p")
+ continue;
if (!MakeDirs(pDir))
return (mh_pid_t)-1;
}
@@ -451,7 +453,7 @@ mh_pid_t mhmakefileparser::EchoCommand(const string &ParamsIn) const
cerr << "Error opening file "<<Filename<<endl;
return (mh_pid_t)-1;
}
- string EchoStr=RemoveQuotes(Params.substr(0,Pos-1))+"\n";
+ string EchoStr=RemoveQuotes(Params.substr(0,Pos))+"\n";
if (EchoStr.length()!=fwrite(EchoStr.c_str(),1,EchoStr.length(),pfFile))
{
cerr << "Error writing file "<<Filename<<endl;