IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 6, 2024, 1:30:43 PM (20 months ago)
Author:
eugene
Message:

merge from trunk: nightly science updates; magic file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20230313/ippScripts/scripts/dist_bundle.pl

    r42644 r42755  
    2525
    2626my $ipprc = PS::IPP::Config->new(); # IPP configuration
     27
     28# we can record the location an appropriate magic.mdc file for the file command
     29my $file_magic = "$ENV{PSCONFDIR}/$ENV{PSCONFIG}/etc/compress.mgc";
     30### TEST print "magic: $file_magic\n";
     31### TEST system ("file -m $file_magic o60523g0045o.2132764.wrp.2688740.skycell.1566.004.pswarp.mdc");
    2732
    2833use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt );
     
    682687    my $mdc_compressed;
    683688    {
    684         my $command = "$file_cmd $resolved";
     689        my $command = "$file_cmd -m $file_magic $resolved";
     690#        my $command = "$file_cmd $resolved";
    685691        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    686692            run(command => $command, verbose => $verbose);
Note: See TracChangeset for help on using the changeset viewer.