X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fmain.c;h=1a3fc7665504e39238aa8d435f9962bf46165a9c;hb=5a47fb16ab0fc9574660a0ed04151f359c826cbf;hp=e4aa024c46c55d892c104dd7163a9fa3a72e335b;hpb=ee6cf4efedf15c91fc7fd8e1bd08382e6c0f48f7;p=idzebra-moved-to-github.git diff --git a/index/main.c b/index/main.c index e4aa024..1a3fc76 100644 --- a/index/main.c +++ b/index/main.c @@ -4,7 +4,14 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: main.c,v $ - * Revision 1.35 1996-02-12 15:56:11 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 * New code command: unread. * * Revision 1.34 1996/02/07 14:06:39 adam @@ -167,6 +174,7 @@ int main (int argc, char **argv) rGroupDef.recordType = NULL; rGroupDef.flagStoreData = -1; rGroupDef.flagStoreKeys = -1; + rGroupDef.fileVerboseFlag = 1; prog = *argv; if (argc < 2) @@ -210,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")) @@ -301,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)