]> pd.if.org Git - zpackage/blob - zpm-init.c
add notes.file to filerefs view
[zpackage] / zpm-init.c
1 #include <stdlib.h>
2 #include <stdio.h>
3 #include "zpm.h"
4
5 int main(int ac, char **av){
6         struct zpm pkg;
7         int rv;
8
9         if (ac < 2) {
10                 fprintf(stderr, "usage: path\n");
11                 return 1;
12         }
13         rv = zpm_init(&pkg, av[1]);
14         if (rv) {
15                 zpm_close(&pkg);
16         }
17
18         return rv ? 0 : 1;
19 }