IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 13, 2008, 3:51:22 PM (18 years ago)
Author:
bills
Message:

Added touch parameter to ipp_datapath.pl and ipp_filename.pl
new script to print out the resolved path to a raw image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/ipp_datapath.pl

    r13275 r17663  
    33use warnings;
    44use strict;
     5use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt );
    56
    67use PS::IPP::Config;
    78my $ipprc = PS::IPP::Config->new();
    89
     10my $touch;
     11
     12GetOptions(
     13    'touch'     => \$touch,
     14);
     15
    916die "No filename specified.\n" if scalar @ARGV != 1;
    1017
    11 print $ipprc->file_resolve(shift @ARGV) . "\n";
     18my $filename = shift @ARGV;
     19
     20print $ipprc->file_resolve($filename, $touch) . "\n";
    1221
    13221;
Note: See TracChangeset for help on using the changeset viewer.