/* (C) 2003 XDA Developers * Author: Willem Jan Hengeveld * Web: http://www.xda-developers.com/ * * $Header$ */ #include #include "debug.h" #include "fileutils.h" #include "stringutils.h" #include "commandexecutor.h" #include using namespace std; bool ProcessLine(const string& line); bool ProcessFile(const string& filename) { StringList lines; if (!ReadFileLines(filename, lines)) return false; for (StringList::iterator i= lines.begin() ; i!=lines.end() ; ++i) { if (!ProcessLine(*i)) return false; } return true; } bool ProcessLine(const string& line) { StringList tokens; if (!SplitString(line, tokens)) return false; for (int i=0 ; i