IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 21, 2008, 6:48:35 PM (18 years ago)
Author:
bills
Message:

Various updates and additions

Location:
trunk/pstamp/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/src

    • Property svn:ignore
      •  

        old new  
        11ppstamp
         2pstampparse
         3pstamprequest
        24Makefile
        35Makefile.in
  • trunk/pstamp/src/pstampparse.c

    r16278 r16593  
    1111    pmConfig    *config;
    1212    psString    fileName;
     13    psString    outputDirectory;
    1314    psMetadata  *md;
    1415    psString    roiString;
     
    8889    if ((argnum = psArgumentGet(argc, argv, "-simple"))) {
    8990        options->simple = true;
     91        psArgumentRemove(argnum, &argc, argv);
     92    }
     93    if ((argnum = psArgumentGet(argc, argv, "-out_dir"))) {
     94        psArgumentRemove(argnum, &argc, argv);
     95        if (argnum == argc) {
     96            fprintf(stderr, "value required for out_dir\n");
     97            usage();
     98        }
     99        options->outputDirectory = argv[argnum];
    90100        psArgumentRemove(argnum, &argc, argv);
    91101    }
     
    538548static psArray * parseByCoord(pspOptions *options)
    539549{
    540     psError(PS_ERR_UNKNOWN, true, "REQ_TYPE: bycoord not implemented yet");
     550    psError(PSTAMP_ERR_NOT_IMPLEMENTED, true, "REQ_TYPE: bycoord not implemented yet");
    541551    return NULL;
    542552}
     
    591601    psString cmd = NULL;
    592602
    593     psStringAppend(&cmd, "pstamptool -addjob -req_id %ld -uri %s -outputBase %s -args '%s' >/dev/null",
    594                                 options->req_id, uri, outputBase, commandArgs);
     603    psStringAppend(&cmd, "pstamptool -addjob -req_id %ld -uri %s -outputBase ", options->req_id, uri);
     604   
     605    if (options->outputDirectory) {
     606        psStringAppend(&cmd, "%s/", options->outputDirectory);
     607    }
     608   
     609    psStringAppend(&cmd, "%s -args '%s' >/dev/null", outputBase, commandArgs);
     610
    595611    if (options->verbose) {
    596612        fprintf(stderr, "excuting system(%s)\n", cmd);
Note: See TracChangeset for help on using the changeset viewer.