1d039e234387f53e7478591061dfe7a98016d838
[platform/upstream/libsolv.git] / tools / helix2solv.c
1 /*
2  * Copyright (c) 2007, Novell Inc.
3  *
4  * This program is licensed under the BSD license, read LICENSE.BSD
5  * for further information
6  */
7
8 /*
9  * helix2solv.c
10  * 
11  * parse 'helix' type xml and write out .solv file
12  *
13  * reads from stdin
14  * writes to stdout
15  */
16
17 #include <sys/types.h>
18 #include <limits.h>
19 #include <fcntl.h>
20 #include <stdio.h>
21 #include <stdlib.h>
22 #include <string.h>
23
24 #include "pool.h"
25 #include "repo_helix.h"
26 #include "repo_write.h"
27
28 int
29 main(int argc, char **argv)
30 {
31   Pool *pool = pool_create();
32   Repo *repo = pool_addrepo_helix(pool, stdin);
33   pool_writerepo(pool, repo, stdout);
34   pool_free(pool);
35   exit(0);
36 }