IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 122


Ignore:
Timestamp:
Oct 8, 2003, 9:45:12 AM (23 years ago)
Author:
eugene
Message:

added 'preserve' mode to keep temp files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/perl/src/detflips

    r70 r122  
    33# grab the command line options [-C config] [-c configfile]
    44$config = "";
     5$preserve = 0;
    56@tARGV = ();
    67while (@ARGV) {
     
    1213        $config = "$config -c $ARGV[1]";
    1314        shift; shift; next;
     15    }
     16    if ($ARGV[0] eq "-preserve") {
     17        $preserve = 1;
     18        shift; next;
    1419    }
    1520    push @tARGV, $ARGV[0];
     
    7277$stat = $?;
    7378
    74 unlink ($temp1);
    75 unlink ($temp2);
     79if (! $preserve) {
     80    unlink ($temp1);
     81    unlink ($temp2);
     82}
    7683
    7784if ($stat) {
Note: See TracChangeset for help on using the changeset viewer.