[LON-CAPA-cvs] cvs: loncom /build install_web_site_cronjob

raeburn raeburn at source.lon-capa.org
Sat Jan 28 17:46:26 EST 2012


raeburn		Sat Jan 28 22:46:26 2012 EDT

  Modified files:              
    /loncom/build	install_web_site_cronjob 
  Log:
  - Bring version in CVS in line with version used for daily rebuild of installation
    pages on install.loncapa.org.
    - CVS access switched to using ssh keys in 2008.
    - Files found at /docs/downloads are obsolete.
  
  
Index: loncom/build/install_web_site_cronjob
diff -u loncom/build/install_web_site_cronjob:1.9 loncom/build/install_web_site_cronjob:1.10
--- loncom/build/install_web_site_cronjob:1.9	Tue Jul  6 18:09:41 2004
+++ loncom/build/install_web_site_cronjob	Sat Jan 28 22:46:26 2012
@@ -50,10 +50,10 @@
 # the "make tardist" command.  But instead, unstable is now defined as
 # "all the gunk we have been working on", whereas the 
 # "make tardist" command means a "carefully inventoried selection of gunk".
-#`cd /home/loninst/auto; export CVS_PASSFILE=/home/loninst/.cvspass; export CVSROOT=:pserver:scott\@localhost:/home/cvs; rm -Rf loncapa/[C][^V]*; rm -Rf loncapa/[^C]*; cvs -Q co loncapa; cd loncapa/loncom/build; make build 2>/dev/null; make tardist;`;
+#`cd /home/loninst/auto; export CVS_RSH=ssh; export CVSROOT=:ext:loninst\@source.lon-capa.org:/home/cvs; rm -Rf loncapa/[C][^V]*; rm -Rf loncapa/[^C]*; cvs -Q co loncapa; cd loncapa/loncom/build; make build 2>/dev/null; make tardist;`;
 
 # The real world.  Just give them all the gunk for the unstable distribution.
-`cd /home/loninst/auto; export CVS_PASSFILE=/home/loninst/.cvspass; export CVSROOT=:pserver:scott\@localhost:/home/cvs; rm -Rf loncapa-unstable; rm -Rf loncapa; cvs -Q export -r HEAD loncapa;`;
+`cd /home/loninst/auto; export CVS_RSH=ssh; export CVSROOT=:ext:loninst\@source.lon-capa.org:/home/cvs; rm -Rf loncapa-unstable; rm -Rf loncapa; cvs -Q export -r HEAD loncapa;`;
 
 # Generate a README file that advises them about dealing with the gunk.
 open(OUT,'>/home/loninst/auto/loncapa/README');
@@ -107,6 +107,7 @@
 #`cd /home/loninst/public_html/docs; tar xzf docs.tar.gz`;
 
 `cd /home/loninst/auto/loncapa/loncom/build; make buildwebsite`;
+system("cp /home/loninst/auto/loncapa/doc/build/*.html /home/loninst/public_html/");
 
 # ------------------------------------ Copying over the latest unstable tarball
 #my $filename=`cd /home/loninst/auto; find loncapa -type f -name *.tar.gz -maxdepth 1`;
@@ -126,7 +127,7 @@
 close(IN);
 
 # ------------------ Updating the download page with the date of the last build
-open(IN,"</home/loninst/public_html/docs/downloads/index.html");
+open(IN,"</home/loninst/public_html/index.html");
 my @lines = <IN>;
 close(IN);
 my $date = `date -I`; chomp($date);
@@ -134,7 +135,7 @@
 $text =~ s/loncapa-unstable\.tar\.gz\<\/a\>.*?\./loncapa-unstable\.tar\.gz\<\/a\> (generated $date)\./;
 $text =~ s/LATESTVERSION/$version/g;
 $text =~ s/LATESTDATE/$releasedate/g;
-open(OUT,">/home/loninst/public_html/docs/downloads/index.html");
+open(OUT,">/home/loninst/public_html/index.html");
 print(OUT $text);
 close(OUT);
 
@@ -148,7 +149,7 @@
 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");
+open(IN,"</home/loninst/public_html/index.html");
 my @lines = <IN>;
 close(IN);
 my $text = join('', at lines);
@@ -158,10 +159,9 @@
     $text =~ s/TESTINGRELEASE_START//g;
     $text =~ s/TESTINGRELEASE_END//g;
 } else {
-    $text =~ s/TESTINGRELEASE_START.*TESTINGRELEASE_END//g;
+    $text =~ s/TESTINGRELEASE_START.*TESTINGRELEASE_END//gs;
 }
-open(OUT,">/home/loninst/public_html/docs/downloads/index.html");
+open(OUT,">/home/loninst/public_html/index.html");
 print(OUT $text);
 close(OUT);
 
-system("cp /home/loninst/auto/loncapa/doc/build/*.html /home/loninst/public_html/");




More information about the LON-CAPA-cvs mailing list