File:  [Public] / rpm2html / rpm2html.c
Revision 1.2: download - view: text, annotated - select for diffs
Tue Nov 11 21:18:53 1997 UTC (26 years, 6 months ago) by veillard
Branches: MAIN
CVS tags: HEAD
Improved a lot, removed bugs related to sorting, Daniel.

/*
 * rpm2html.c : Application to generate an HTML view of an ensemble
 *              of RPM packages.
 *
 * $Id: rpm2html.c,v 1.2 1997/11/11 21:18:53 veillard Exp $
 *
 * $Log: rpm2html.c,v $
 * 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 <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#include "rpmdata.h"
#include "html.h"


int main(int argc, char *argv[]) {
    int i;

    if (argc < 2) {
        fprintf(stderr, "usage : %s rpm1 rpm2 ...\n", argv[0]);
	exit(0);
    }
    for (i = 1; i < argc ; i++) {
        rpmOpen(argv[i]);
    }
    dumpAllRpmHtml();
    rpmDistribSort();
    dumpRpmDistribs();
    rpmGroupSort();
    dumpRpmGroups();
    rpmVendorSort();
    dumpRpmVendors();
    rpmDateSort();
    dumpRpmByDate();

    return(0);
}


Webmaster