* Sebastian Hammer, Adam Dickmeiss
*
* $Log: main.c,v $
- * Revision 1.18 1995-11-22 17:19:17 adam
+ * Revision 1.21 1995-11-27 14:27:39 adam
+ * Renamed 'update' command to 'dir'.
+ *
+ * Revision 1.20 1995/11/27 13:58:53 adam
+ * New option -t. storeStore data implemented in server.
+ *
+ * Revision 1.19 1995/11/25 10:24:06 adam
+ * More record fields - they are enumerated now.
+ * New options: flagStoreData flagStoreKey.
+ *
+ * Revision 1.18 1995/11/22 17:19:17 adam
* Record management uses the bfile system.
*
* Revision 1.17 1995/11/21 15:01:16 adam
rGroup.groupName = NULL;
rGroup.databaseName = NULL;
rGroup.path = NULL;
+ rGroup.fileMatch = NULL;
+ rGroup.flagStoreData = -1;
+ rGroup.flagStoreKeys = -1;
+ rGroup.fileType = NULL;
prog = *argv;
if (argc < 2)
" [-g group] cmd1 dir1 cmd2 dir2 ...\n");
exit (1);
}
- while ((ret = options ("c:g:v:m:d:", argv, argc, &arg)) != -2)
+ while ((ret = options ("t:c:g:v:m:d:", argv, argc, &arg)) != -2)
{
if (ret == 0)
{
{
cmd = 'd';
}
- else if (!strcmp (arg, "update"))
+ else if (!strcmp (arg, "dir"))
{
cmd = 'u';
}
}
else if (ret == 'c')
configName = arg;
+ else if (ret == 't')
+ rGroup.fileType = arg;
else
{
logf (LOG_FATAL, "Unknown option '-%s'", arg);