Merge CV, ver=5.1; ops/methods from HV, and interface from CV where possible
[goodguy/history.git] / cinelerra-5.1 / db / utils / new_db.C
diff --git a/cinelerra-5.1/db/utils/new_db.C b/cinelerra-5.1/db/utils/new_db.C
new file mode 100644 (file)
index 0000000..7f71e7f
--- /dev/null
@@ -0,0 +1,15 @@
+#include <stdio.h>
+#include <stdint.h>
+
+#include "s.C"
+
+int main(int ac, char **av)
+{
+       if( ac < 2 ) { printf("usage: %s <new>.db\n",av[0]);  exit(1); }
+       theDb *db = new theDb();
+       remove(av[1]);
+       db->create(av[1]);
+       delete db;
+       return 0;
+}
+