Changeset 25579 for main/trunk/greenstone2/bin/script/full-rebuild.pl
- Timestamp:
- 2012-05-11T19:23:42+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/bin/script/full-rebuild.pl
r25573 r25579 31 31 # Followed by: full-buildcol.pl -removeold ... 32 32 # (assumming import.pl did not end with an error) 33 34 # The -keepold argument can be passed into this script since this calls activate.pl35 # And activate.pl allows the contents of a src dir to be moved into the dest_dir36 # without destroying other (uniquely-named) contents of dest_dir.37 33 38 34 BEGIN { … … 129 125 my $build_dir = undef; 130 126 my $index_dir = undef; 127 my $verbosity = 2; # same as the default in buildcol.pl 131 128 132 129 while (my $arg = shift @argv) { … … 160 157 push(@activate_argv,$arg,$index_dir); 161 158 } 159 elsif ($arg eq "-verbosity") { 160 $verbosity = shift @argv; 161 push(@import_argv,$arg,$verbosity); 162 push(@buildcol_argv,$arg,$verbosity); 163 push(@activate_argv,$arg,$verbosity); 164 } 162 165 else { 163 166 push(@import_argv,$arg); 164 167 push(@buildcol_argv,$arg); 165 168 push(@activate_argv,$arg); 166 169 } 167 170 } … … 198 201 199 202 #full_replace($site,$collect_dir,$collect,$build_dir,$index_dir); 200 my $activatecol_cmd = $launch_cmd . "activate.pl $quoted_activate_argv \"$collect\""; 203 204 # run activate with -removeold, just like full-buildcol.pl called above runs buildcol.pl 205 my $activatecol_cmd = $launch_cmd . "activate.pl -removeold $quoted_activate_argv \"$collect\""; 201 206 my $activatecol_status = system($activatecol_cmd)/256; 202 207 }
Note:
See TracChangeset
for help on using the changeset viewer.