+++ /dev/null
-#include <stdlib.h>
-#include <stdio.h>
-#include "zpm.h"
-
-int main(int ac, char **av){
- struct zpm pkg;
- int rv;
- char *path;
-
- path = getenv("ZPMDB");
-
- if (ac > 1) {
- path = av[1];
- }
-
- if (!path) {
- fprintf(stderr, "usage: zpm-init [path]\n");
- return 1;
- }
- rv = zpm_init(&pkg, path);
- if (rv) {
- zpm_close(&pkg);
- }
-
- return rv ? 0 : 1;
-}