[BACK]Return to mandocdb.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/mandocdb.c between version 1.139 and 1.140

version 1.139, 2014/04/19 02:30:19 version 1.140, 2014/04/19 02:56:54
Line 430  main(int argc, char *argv[])
Line 430  main(int argc, char *argv[])
         ohash_init(&mlinks, 6, &mlinks_info);          ohash_init(&mlinks, 6, &mlinks_info);
   
         if (OP_UPDATE == op || OP_DELETE == op || OP_TEST == op) {          if (OP_UPDATE == op || OP_DELETE == op || OP_TEST == op) {
                 /*  
                  * Force processing all files.  
                  */  
                 use_all = 1;  
   
                 /*                  /*
                  * All of these deal with a specific directory.                   * All of these deal with a specific directory.
                  * Jump into that directory then collect files specified                   * Jump into that directory first.
                  * on the command-line.  
                  */                   */
                 if (0 == set_basedir(path_arg))                  if (0 == set_basedir(path_arg))
                         goto out;                          goto out;
   
                 if (dbopen(1)) {                  if (dbopen(1)) {
                           /*
                            * The existing database is usable.  Process
                            * all files specified on the command-line.
                            */
                           use_all = 1;
                         for (i = 0; i < argc; i++)                          for (i = 0; i < argc; i++)
                                 filescan(argv[i]);                                  filescan(argv[i]);
                         if (OP_TEST != op)                          if (OP_TEST != op)
Line 452  main(int argc, char *argv[])
Line 453  main(int argc, char *argv[])
                          * Database missing or corrupt.                           * Database missing or corrupt.
                          * Recreate from scratch.                           * Recreate from scratch.
                          */                           */
                           exitcode = (int)MANDOCLEVEL_OK;
                         op = OP_DEFAULT;                          op = OP_DEFAULT;
                         if (0 == treescan())                          if (0 == treescan())
                                 goto out;                                  goto out;

Legend:
Removed from v.1.139  
changed lines
  Added in v.1.140

CVSweb