Changeset 23861 for trunk/ippScripts/scripts/dist_make_fileset.pl
- Timestamp:
- Apr 14, 2009, 3:14:27 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/dist_make_fileset.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/dist_make_fileset.pl
r23838 r23861 39 39 40 40 # Parse the command-line arguments 41 my ($dist_id, $dist_dir, $target_id, $stage, $stage_id, $prod_id, $product_name, $ product_root, $ds_dbhost, $ds_dbname);41 my ($dist_id, $dist_dir, $target_id, $stage, $stage_id, $prod_id, $product_name, $ds_dbhost, $ds_dbname); 42 42 my ($dbname, $save_temps, $verbose, $no_update, $logfile); 43 43 … … 50 50 'prod_id=s' => \$prod_id, # id for the product 51 51 'product_name=s' => \$product_name, # location of the data store directory for this product 52 'product_root=s' => \$product_root, # location of the data store directory for this product53 52 'ds_dbhost=s' => \$ds_dbhost, # database host for the datastore database 54 53 'ds_dbname=s' => \$ds_dbname, # database name for the datastore database … … 61 60 62 61 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 63 pod2usage( -msg => "Required options: --dist_id --dist_dir --target_id --stage --stage_id --prod_id -- product_root --ds_dbhost --ds_dbname",62 pod2usage( -msg => "Required options: --dist_id --dist_dir --target_id --stage --stage_id --prod_id --ds_dbhost --ds_dbname", 64 63 -exitval => 3) unless 65 64 defined $dist_id and … … 70 69 defined $prod_id and 71 70 defined $product_name and 72 defined $product_root and73 71 defined $ds_dbhost and 74 72 defined $ds_dbname; … … 156 154 157 155 # XXX: disttool -addrcdsfileset 158 159 # XXX todo: add rcRun's for the destinations 156 { 157 my $command = "$disttool -addfileset -dist_id $dist_id -prod_id $prod_id -name $fileset_name"; 158 $command .= " -dbname $dbname" if $dbname; 159 160 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 161 run(command => $command, verbose => $verbose); 162 unless ($success) { 163 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 164 &my_die("Unable to perform $command error_code: $error_code", $dist_id, $prod_id, $error_code); 165 } 166 } 167 160 168 161 169 … … 239 247 print STDERR "$msg\n"; 240 248 249 my $command = "$disttool -addfileset -dist_id $dist_id -prod_id $prod_id -fault $fault"; 250 $command .= " -dbname $dbname" if $dbname; 251 252 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 253 run(command => $command, verbose => $verbose); 254 unless ($success) { 255 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 256 print STDERR "Unable to perform $command error_code: $error_code\n"; 257 } 241 258 exit $fault; 242 259 }
Note:
See TracChangeset
for help on using the changeset viewer.
