X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fmain.c;h=1a3fc7665504e39238aa8d435f9962bf46165a9c;hb=5a47fb16ab0fc9574660a0ed04151f359c826cbf;hp=b7e71b12d328b948f39d1468e0f9c9e174019db8;hpb=9bf9498168489df4a3df3e01ce95f46643b7ea9e;p=idzebra-moved-to-github.git diff --git a/index/main.c b/index/main.c index b7e71b1..1a3fc76 100644 --- a/index/main.c +++ b/index/main.c @@ -4,7 +4,11 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: main.c,v $ - * Revision 1.36 1996-02-12 18:45:37 adam + * 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 @@ -214,6 +218,8 @@ int main (int argc, char **argv) } 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 +311,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)