Changeset 27164 for trunk/ippScripts/scripts/lossy_compress_imfile.pl
- Timestamp:
- Mar 3, 2010, 2:57:11 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/lossy_compress_imfile.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/lossy_compress_imfile.pl
r27149 r27164 127 127 &my_die("Couldn't find original file: $uri\n", $exp_id,$exp_name,$class_id,$uri,$PS_EXIT_SYS_ERROR) 128 128 unless($ipprc->file_exists($uri)); 129 my $uriReal = $ipprc->file_resolve( $uri ); 130 129 131 my $compUri = $uri . ".fz"; 130 132 unless($ipprc->file_exists($compUri)) { 131 133 &my_die("Couldn't find compressed version of the file: $compUri\n", 132 134 $exp_id,$exp_name,$class_id,$uri,$PS_EXIT_SYS_ERROR); 135 133 136 # If that die is removed, this will compress things as well. 134 137 &my_die("Output compressed file already exists: $compUri\n", … … 142 145 unless ($success) { 143 146 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 144 &my_die("Unable to compress file: $uri -> $compUri: $error_code", $exp_id,$exp_name,$class_id,$uri, $PS_EXIT_SYS_ERROR); 147 &my_die("Unable to compress file: $uri -> $compUri: $error_code", 148 $exp_id,$exp_name,$class_id,$uri, $PS_EXIT_SYS_ERROR); 145 149 } 146 150 } … … 179 183 } 180 184 # remove original version 181 # $neb->delete($uri);185 $neb->delete($compUri); 182 186 } 183 187 exit(0);
Note:
See TracChangeset
for help on using the changeset viewer.
