Create XZ compressed archive using git ls-files
[cygwin-setup.git] / inilintmain.cc
blob2d1b2cf9694c20f2bc6ee6a357e92e10de2099c2
1 /*
2 * Copyright (c) 2002, Robert Collins.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * A copy of the GNU General Public License can be found at
10 * http://www.gnu.org/
12 * Written by Robert Collins <rbtcollins@hotmail.com>
16 #if 0
17 static const char *cvsid =
18 "\n%%% $Id$\n";
19 #endif
21 #include "getopt++/GetOption.h"
22 #include <iostream>
23 #include <sstream>
24 using namespace std;
26 extern int yylineno;
28 static ostringstream error_buf;
29 static int error_count = 0;
31 extern int
32 yyerror (const std::string& s)
34 ostringstream buf;
35 buf << "setup.ini line " << yylineno << ": ";
36 buf << s << endl;
37 cout << buf;
38 error_buf << buf;
39 error_count++;
40 /* TODO: is return 0 correct? */
41 return 0;
44 void
45 show_help()
47 cout << "inilint checks cygwin setup.ini files and reports any errors with" << endl;
48 cout << "diagnostics" << endl;
51 int
52 main (int argc, char **argv)
54 if (!GetOption::GetInstance().Process (argc,argv,NULL))
56 show_help();
57 return 1;
59 return 0;