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

harris41 lon-capa-cvs@mail.lon-capa.org
Mon, 29 Apr 2002 19:15:41 -0000


harris41		Mon Apr 29 15:15:41 2002 EDT

  Modified files:              
    /loncom/build	Makefile.cvs 
  Log:
  modularization and configurability... TIMEAGO flag now supported
  
  
Index: loncom/build/Makefile.cvs
diff -u loncom/build/Makefile.cvs:1.4 loncom/build/Makefile.cvs:1.5
--- loncom/build/Makefile.cvs:1.4	Sat Apr 27 13:37:40 2002
+++ loncom/build/Makefile.cvs	Mon Apr 29 15:15:41 2002
@@ -1,10 +1,11 @@
 # The LearningOnline Network with CAPA
 
 # Scott Harrison
-# $Id: Makefile.cvs,v 1.4 2002/04/27 17:37:40 harris41 Exp $
+# $Id: Makefile.cvs,v 1.5 2002/04/29 19:15:41 harris41 Exp $
 
 STATDIR="loncom/build/cvsstats"
 STATSUBDIR="cvsstats"
+TIMEAGO=7
 
 help:
 	@echo "*** You need to specify a valid target ***"
@@ -36,25 +37,19 @@
 	loncom CAPA doc 2>/dev/null | \
 	perl loncom/build/cvsfilter.pl | grep '^Working file:' | cut -b15- \
 	>> doc/build/cvsreport.html
-	# Log entries for loncom
-	echo "</pre></p><p>Log entries for <b>loncom</b>:</p><pre>" >> \
-	../../doc/build/cvsreport.html
-	cd ../../loncom; cvs log -d ">`date --date='8 days ago' \
-	+\"%Y-%m-%d\"`" . 2>/dev/null | perl ../loncom/build/cvsfilter.pl >> \
-	../doc/build/cvsreport.html
-	# Log entries for CAPA
-	echo "</pre></p><p>Log entries for <b>CAPA</b>:</p><pre>" >> \
-	../../doc/build/cvsreport.html
-	cd ../../CAPA; cvs log -d ">`date --date='8 days ago' \
-	+\"%Y-%m-%d\"`" . 2>/dev/null | perl ../loncom/build/cvsfilter.pl >> \
-	../doc/build/cvsreport.html
-	# Log entries for doc
-	echo "</pre></p><p>Log entries for <b>doc</b>:</p><pre>" >> \
-	../../doc/build/cvsreport.html
-	cd ../../doc; cvs log -d ">`date --date='8 days ago' \
-	+\"%Y-%m-%d\"`" . 2>/dev/null | perl ../loncom/build/cvsfilter.pl >> \
-	../doc/build/cvsreport.html
-	echo "</pre></p>" >> ../../doc/build/cvsreport.html
+	echo "</pre></p>" >> ../constructdoc/devhistory/cvsreport.html
+	make -f Makefile.cvs COMPONENT=loncom logentries
+	make -f Makefile.cvs COMPONENT=CAPA logentries
+	make -f Makefile.cvs COMPONENT=doc logentries
+
+logentries:
+	# Log entries for $(COMPONENT)
+	echo "<p>Log entries for <b>$(COMPONENT)</b>:</p><pre>" >>\
+	../constructdoc/devhistory/cvsreport.html
+	cd ../$(COMPONENT); cvs log -d ">`date --date='$(TIMEAGO) days ago' \
+	+\"%Y-%m-%d\"`" . 2>/dev/null | perl ../build/cvsfilter.pl >> \
+	../constructdoc/devhistory/cvsreport.html
+	echo "</pre></p>" >> ../constructdoc/devhistory/cvsreport.html
 
 statpage:
 	install -d $(STATSUBDIR)