X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fmain.c;h=f957daf889580ce5c8db052fc0429bfbf8ad4f5a;hb=adc0ef50c52d332902ef92c8feb460eee55a1f05;hp=b7e71b12d328b948f39d1468e0f9c9e174019db8;hpb=0d2825772055a5aeb7086d5a7d2d600cf498445e;p=idzebra-moved-to-github.git diff --git a/index/main.c b/index/main.c index b7e71b1..f957daf 100644 --- a/index/main.c +++ b/index/main.c @@ -4,7 +4,14 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: main.c,v $ - * Revision 1.36 1996-02-12 18:45:37 adam + * Revision 1.38 1996-03-26 16:01:14 adam + * New setting lockPath: directory of various lock files. + * + * Revision 1.37 1996/03/19 12:43:26 adam + * Bug fix: File update traversal didn't handle trailing slashes correctly. + * Bug fix: Update of sub directory groups wasn't handled correctly. + * + * Revision 1.36 1996/02/12 18:45:37 adam * New fileVerboseFlag in record group control. * * Revision 1.35 1996/02/12 15:56:11 adam @@ -211,9 +218,12 @@ int main (int argc, char **argv) exit (1); } data1_tabpath = res_get (common_resource, "profilePath"); + bf_lockDir (res_get (common_resource, "lockPath")); } if (!strcmp (arg, "update")) cmd = 'u'; + else if (!strcmp (arg, "dump")) + cmd = 's'; else if (!strcmp (arg, "del") || !strcmp(arg, "delete")) cmd = 'd'; else if (!strcmp (arg, "commit")) @@ -305,6 +315,12 @@ int main (int argc, char **argv) logf (LOG_LOG, "Deleting %s", rGroup.path); repositoryDelete (&rGroup); } + else if (cmd == 's') + { + logf (LOG_LOG, "Dumping %s", rGroup.path); + repositoryShow (&rGroup); + } + cmd = 0; nsections = key_close (); if (nsections)