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

Location:
trunk/ippScripts/scripts
Files:
1 added
2 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;
  • trunk/ippScripts/scripts/ipp_filename.pl

    r13280 r17663  
    1414my $ipprc = PS::IPP::Config->new();
    1515 
    16 my ($filerule, $class_id, $basename, $camera);
     16my ($filerule, $class_id, $basename, $camera, $touch);
    1717
    1818GetOptions('filerule=s'    => \$filerule,
     
    2020           'basename=s'    => \$basename,
    2121           'camera|c=s'    => \$camera,
     22           'touch'         => \$touch,
    2223           ) or pod2usage( 2 );
    2324
     
    4142#print "$filename\n";
    4243
    43 my $realname = $ipprc->file_resolve( $filename );
     44my $realname = $ipprc->file_resolve( $filename, $touch );
    4445print "$realname\n";
    4546
Note: See TracChangeset for help on using the changeset viewer.