/* * rpm2html.c : Application to generate an HTML view of an ensemble * of RPM packages. * * $Id: rpm2html.c,v 1.7 1997/11/13 05:04:34 veillard Exp $ * * $Log: rpm2html.c,v $ * Revision 1.7 1997/11/13 05:04:34 veillard * Lot of improvements, copyright, URLs, E-mail, and config files, Daniel. * * Revision 1.6 1997/11/12 07:06:52 veillard * Directory support and file scanning are now based on the config files, Daniel. * * Revision 1.5 1997/11/12 05:56:56 veillard * Beginning of the coding for the configuration, Daniel. * * Revision 1.4 1997/11/12 00:58:41 veillard * Added header and footer generation functions, Daniel. * * Revision 1.3 1997/11/11 22:28:11 veillard * Added the support for dependancies on resources, Daniel. * * Revision 1.2 1997/11/11 21:18:53 veillard * Improved a lot, removed bugs related to sorting, Daniel. * * Revision 1.1 1997/11/11 11:10:10 veillard * State after one night of work, Daniel * * */ #include #include #include #include #include #include #include #include "rpm2html.h" #include "rpmdata.h" #include "html.h" int main(int argc, char *argv[]) { int i; if (argc < 2) { fprintf(stderr, "%s %s : Web page generator for RPM packages", RPM2HTML_NAME, RPM2HTML_VER); fprintf(stderr, "usage : %s configfile1 [configfile2 ...]\n", argv[0]); exit(0); } for (i = 1; i < argc ; i++) { readConfigFile(argv[i]); } rpmDirScanAll(); /* dumpAllRpmHtml(); Done in previous step */ dumpAllRessHtml(); rpmDistribSort(); dumpRpmDistribs(); rpmGroupSort(); dumpRpmGroups(); rpmVendorSort(); dumpRpmVendors(); rpmDateSort(); dumpRpmByDate(); return(0); }