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

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 06 Jul 2004 18:09:41 -0000


albertel		Tue Jul  6 14:09:41 2004 EDT

  Modified files:              
    /loncom/build	Makefile install_web_site_cronjob 
  Log:
  - commiting some old changes to install_website_cronjob that had gotten lost
  
  
  
Index: loncom/build/Makefile
diff -u loncom/build/Makefile:1.162 loncom/build/Makefile:1.163
--- loncom/build/Makefile:1.162	Wed Jun 23 10:43:44 2004
+++ loncom/build/Makefile	Tue Jul  6 14:09:41 2004
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 
-# $Id: Makefile,v 1.162 2004/06/23 14:43:44 matthew Exp $
+# $Id: Makefile,v 1.163 2004/07/06 18:09:41 albertel Exp $
 
 # TYPICAL USAGE of this Makefile is primarily for two targets:
 # "make build" and "make install".
@@ -676,6 +676,10 @@
 
 # ======================================== *** MASTER DOCUMENTATION TARGETS ***
 
+buildwebsite:
+	cd ../../doc/build; perl ./generate_web_pages.pl
+
+
 # Generates CVS:loncom/build/docs; root location of install.lon-capa.org
 doc:
 	install -d docs
Index: loncom/build/install_web_site_cronjob
diff -u loncom/build/install_web_site_cronjob:1.8 loncom/build/install_web_site_cronjob:1.9
--- loncom/build/install_web_site_cronjob:1.8	Tue Jul  6 11:44:07 2004
+++ loncom/build/install_web_site_cronjob	Tue Jul  6 14:09:41 2004
@@ -97,10 +97,16 @@
 `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
-`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`;
+
+system("rm /home/loninst/public_html/*html");
+
+# 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
 #my $filename=`cd /home/loninst/auto; find loncapa -type f -name *.tar.gz -maxdepth 1`;
@@ -157,3 +163,5 @@
 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/");