IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 17, 2011, 10:24:48 AM (15 years ago)
Author:
bills
Message:

if --unpack is supplied extract tgz files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStore/scripts/dsgetfileset

    r29128 r30667  
    113113                exit $status;
    114114            }
     115        } elsif (($file_type =~ /gzip/) and ($outfile =~ /tgz/) ){
     116            $command = "tar -x --directory $outdir -f $outfile";
     117            $rc = system $command;
     118            if ($rc) {
     119                my $status = $rc >> 8;
     120                print STDERR "failed to extract $outfile: rc: $rc status: $status\n";
     121                exit $status;
     122            }
    115123        }
    116124    }
     
    158166=item * --unpack
    159167
    160 Uncompress fits files if compressed.
     168Uncompress fits files if compressed or extract files from gzipped tar (tgz) files.
    161169
    162170=item * --first-file <fileid>
Note: See TracChangeset for help on using the changeset viewer.