Diff for /loncom/build/install_web_site_cronjob between versions 1.7 and 1.9

version 1.7, 2004/07/06 15:39:53 version 1.9, 2004/07/06 18:09:41
Line 97  close(OUT); Line 97  close(OUT);
 `cd /home/loninst/auto; ln -s loncapa loncapa-unstable; tar cvvf loncapa-unstable.tar loncapa-unstable/* ;gzip -9 -f loncapa-unstable.tar`;  `cd /home/loninst/auto; ln -s loncapa loncapa-unstable; tar cvvf loncapa-unstable.tar loncapa-unstable/* ;gzip -9 -f loncapa-unstable.tar`;
   
 # ---------------------------------------- Dynamically generating documentation  # ---------------------------------------- Dynamically generating documentation
 `cd /home/loninst/auto/loncapa/loncom/build; make pdfdoc`;  
 `cd /home/loninst/auto/loncapa/loncom/build; make doc`;  system("rm /home/loninst/public_html/*html");
 `cd /home/loninst/auto/loncapa/loncom/build; cp docs.tar.gz /home/loninst/public_html/docs/.`;  
 `cd /home/loninst/public_html/docs; tar xzf docs.tar.gz`;  # pdf and doc targets are borken right now
   #`cd /home/loninst/auto/loncapa/loncom/build; make pdfdoc`;
   #`cd /home/loninst/auto/loncapa/loncom/build; make doc`;
   #`cd /home/loninst/auto/loncapa/loncom/build; cp docs.tar.gz /home/loninst/public_html/docs/.`;
   #`cd /home/loninst/public_html/docs; tar xzf docs.tar.gz`;
   
   `cd /home/loninst/auto/loncapa/loncom/build; make buildwebsite`;
   
 # ------------------------------------ Copying over the latest unstable tarball  # ------------------------------------ Copying over the latest unstable tarball
 #my $filename=`cd /home/loninst/auto; find loncapa -type f -name *.tar.gz -maxdepth 1`;  #my $filename=`cd /home/loninst/auto; find loncapa -type f -name *.tar.gz -maxdepth 1`;
Line 138  my $filename=`cd /home/loninst/public_ht Line 144  my $filename=`cd /home/loninst/public_ht
 chomp($filename);  chomp($filename);
 $filename =~ /LATEST-TESTING-IS-(.*)/;  $filename =~ /LATEST-TESTING-IS-(.*)/;
 my $version = $1;  my $version = $1;
   open(IN,"</home/loninst/public_html/versions/$filename");
   my $releasedate = <IN>;
   close(IN);
   # -------------- Updating the download page with the date of the last build
   open(IN,"</home/loninst/public_html/docs/downloads/index.html");
   my @lines = <IN>;
   close(IN);
   my $text = join('',@lines);
 if ($version) {  if ($version) {
     open(IN,"</home/loninst/public_html/versions/$filename");  
     my $releasedate = <IN>;  
     close(IN);  
     # -------------- Updating the download page with the date of the last build  
     open(IN,"</home/loninst/public_html/docs/downloads/index.html");  
     my @lines = <IN>;  
     close(IN);  
     my $date = `date -I`; chomp($date);  
     my $text = join('',@lines);  
     $text =~ s/loncapa-unstable\.tar\.gz\<\/a\>.*?\./loncapa-unstable\.tar\.gz\<\/a\> (generated $date)\./;  
     $text =~ s/LATESTTESTINGVERSION/$version/g;      $text =~ s/LATESTTESTINGVERSION/$version/g;
     $text =~ s/LATESTTESTINGDATE/$releasedate/g;      $text =~ s/LATESTTESTINGDATE/$releasedate/g;
     $text =~ s/TESTINGRELEASE_START//g;      $text =~ s/TESTINGRELEASE_START//g;
     $text =~ s/TESTINGRELEASE_END//g;      $text =~ s/TESTINGRELEASE_END//g;
     open(OUT,">/home/loninst/public_html/docs/downloads/index.html");  
     print(OUT $text);  
     close(OUT);  
 } else {  } else {
     $text =~ s/TESTINGRELEASE_START.*TESTINGRELEASE_END//g;      $text =~ s/TESTINGRELEASE_START.*TESTINGRELEASE_END//g;
 }  }
   open(OUT,">/home/loninst/public_html/docs/downloads/index.html");
   print(OUT $text);
   close(OUT);
   
   system("cp /home/loninst/auto/loncapa/doc/build/*.html /home/loninst/public_html/");

Removed from v.1.7  
changed lines
  Added in v.1.9


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>