IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35597


Ignore:
Timestamp:
May 24, 2013, 5:38:43 PM (13 years ago)
Author:
eugene
Message:

added -images-only option to dvomerge

Location:
branches/eam_branches/ipp-20130509/Ohana/src/dvomerge/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130509/Ohana/src/dvomerge/src/args.c

    r35594 r35597  
    2121  if ((N = get_argument (*argc, argv, "-check-only"))) {
    2222    VERIFY = TRUE;
     23    remove_argument (N, argc, argv);
     24  }
     25
     26  /* extra error messages */
     27  IMAGES_ONLY = FALSE;
     28  if ((N = get_argument (*argc, argv, "-images-only"))) {
     29    IMAGES_ONLY = TRUE;
    2330    remove_argument (N, argc, argv);
    2431  }
     
    102109  PARALLEL_MANUAL = FALSE;
    103110  PARALLEL_SERIAL = FALSE;
     111  IMAGES_ONLY = FALSE;
    104112
    105113  HOST_ID = 0;
  • branches/eam_branches/ipp-20130509/Ohana/src/dvomerge/src/dvomerge.c

    r35594 r35597  
    1414        exit (3);
    1515      }
     16      if (IMAGES_ONLY) {
     17        fprintf (stderr, "ERROR : dvomerge (input1) and (input2) into (output) : not compatible with '-images-only'\n");
     18        exit (5);
     19      }
    1620      dvomergeCreate (argc, argv);
    1721    } else {
     
    1923        fprintf (stderr, "WARNING / ERROR : dvomerge (input) into (output) from (list) : VERIFY mode not implemented\n");
    2024        exit (3);
     25      }
     26      if (IMAGES_ONLY) {
     27        fprintf (stderr, "ERROR : dvomerge (input) input (output) from (list) : not compatible with '-images-only'\n");
     28        exit (5);
    2129      }
    2230      dvomergeFromList (argc, argv);
  • branches/eam_branches/ipp-20130509/Ohana/src/dvomerge/src/dvomergeUpdate.c

    r35594 r35597  
    2222    if (strcasecmp (argv[4], "continue")) dvomerge_usage();
    2323    CONTINUE = TRUE;
     24    if (IMAGES_ONLY) {
     25      fprintf (stderr, "-images-only is not compatible with the 'continue' option\n");
     26      exit (5);
     27    }
    2428  }
    2529  if (VERIFY) CONTINUE = TRUE;
  • branches/eam_branches/ipp-20130509/Ohana/src/dvomerge/src/dvomergeUpdate_threaded.c

    r35594 r35597  
    124124    if (strcasecmp (argv[4], "continue")) dvomerge_usage();
    125125    CONTINUE = TRUE;
     126    if (IMAGES_ONLY) {
     127      fprintf (stderr, "-images-only is not compatible with the 'continue' option\n");
     128      exit (5);
     129    }
    126130  }
    127131
     
    183187  } else {
    184188    dvomergeImagesUpdate (&IDmap, input, output);
     189    if (IMAGES_ONLY) exit (0);
    185190  }
    186191
Note: See TracChangeset for help on using the changeset viewer.