ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/Spectre/Spectre.cpp
(Generate patch)

Comparing trunk/Spectre/Spectre.cpp (file contents):
Revision 158 by douglas, 2003-06-09T01:10:31-07:00 vs.
Revision 159 by douglas, 2003-06-09T20:12:03-07:00

# Line 112 | Line 112 | int main(int argc, char* argv[])
112                          << "config.install = " << config.install << "\n";
113          }
114  
115 < //      configure();
115 >        configure();
116  
117          if (debug)
118          {
119 <                cerr << "config.smbclient = " << config.smbclient << "\n";
120 <                cerr << "config.mount_smbfs = " << config.mount_smbfs << "\n"
119 >                cerr << "config.smbclient = " << config.smbclient << "\n"
120 >                        << "config.mount = " << config.mount << "\n"
121 >                        << "config.root = " << config.root << "\n"
122                          << (!config.hosts.empty() ? "config.hosts = {\n" : "");
123  
124                  for (multimap<string, string>::iterator itor = config.hosts.begin();
# Line 167 | Line 168 | void version()
168                  << "   This product includes software developed by Douglas Thrift\n"
169                  << "   (http://computers.douglasthrift.net/).\n";
170   }
171 +
172 + void configure()
173 + {
174 +        string conf = config.install + "/conf/spectre.conf";
175 +
176 +        ifstream fin(conf.c_str());
177 +
178 +        if (!fin.is_open())
179 +        {
180 +                cerr << program << ": Could not open " << conf << "\n";
181 +                exit(1);
182 +        }
183 +
184 +        do
185 +        {
186 +                //
187 +        }
188 +        while (fin.good());
189 +
190 +        fin.close();
191 + }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines