Changeset 25665
- Timestamp:
- Sep 29, 2009, 11:40:54 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/DataStoreServer/scripts/dsprodtool (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataStoreServer/scripts/dsprodtool
r25664 r25665 192 192 193 193 # set up the product directory 194 # if there is an old index file delete it 195 if (-e $index_script_name ) { 196 if (!unlink($index_script_name)) { 197 die("failed trying to remove old $index_script_name"); 198 } 199 } 194 200 if (! -e $product_dir) { 195 201 $we_created_dir = 1; … … 197 203 die("failed trying to make product directory $product_dir"); 198 204 } 199 } 200 if (-e $index_script_name ) {201 if (!unlink($index_script_name)) {202 die("failed trying to remove old $index_script_name");203 }204 } 205 } else { 206 # directory alrady exists make sure that it's empty 207 my @dirlist = glob("$product_dir/*"); 208 die ("existing product directory $product_dir is not empty") if scalar @dirlist; 209 } 210 205 211 if (!copy($root_index_script, $index_script_name)) { 206 212 print STDERR "failed trying to copy($root_index_script, $index_script_name)";
Note:
See TracChangeset
for help on using the changeset viewer.
