FIX: stupid pb fixed (close to being medieval'ed by The Ken)
[cmake.git] / Source / cmDumpDocumentation.cxx
blob34811b4b926e1c729bc0e8838d510e5d0e0a31e9
1 /*=========================================================================
3 Program: Insight Segmentation & Registration Toolkit
4 Module: $RCSfile: cmDumpDocumentation.cxx,v $
5 Language: C++
6 Date: $Date: 2002-01-21 20:30:22 $
7 Version: $Revision: 1.4 $
9 Copyright (c) 2002 Insight Consortium. All rights reserved.
10 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 // Program extracts documentation describing commands from
18 // the CMake system.
19 //
20 #include "cmMakefile.h"
22 int main(int ac, char** av)
24 cmMakefile makefile;
25 const char* outname = "cmake.html";
26 if(ac > 1)
28 outname = av[1];
30 std::ofstream fout(outname);
31 if(!fout)
33 std::cerr << "failed to open output file: " << outname << "\n";
34 return -1;
36 makefile.DumpDocumentationToFile(fout);
37 return 0;