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

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


harris41		Mon Apr 29 15:19:08 2002 EDT

  Modified files:              
    /loncom/build	Makefile.cvs 
  Log:
  make it truly configurable with TIMEAGO value
  
  
Index: loncom/build/Makefile.cvs
diff -u loncom/build/Makefile.cvs:1.5 loncom/build/Makefile.cvs:1.6
--- loncom/build/Makefile.cvs:1.5	Mon Apr 29 15:15:41 2002
+++ loncom/build/Makefile.cvs	Mon Apr 29 15:19:08 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 
 # Scott Harrison
-# $Id: Makefile.cvs,v 1.5 2002/04/29 19:15:41 harris41 Exp $
+# $Id: Makefile.cvs,v 1.6 2002/04/29 19:19:08 harris41 Exp $
 
 STATDIR="loncom/build/cvsstats"
 STATSUBDIR="cvsstats"
@@ -21,19 +21,22 @@
 	echo "<h1>Automatically generated CVS report</h1>" > \
 	../../doc/build/cvsreport.html
 	# General Date Info
-	echo "<h1>LON-CAPA Software Changes from `date --date='7 days ago' \
+	echo "<h1>LON-CAPA Software Changes from \
+	`date --date='$(TIMEAGO) days ago' \
 	+\"%Y-%m-%d\"` to `date +\"%Y-%m-%d\"`</h1>" >> \
 	../../doc/build/cvsreport.html
 	# General Alteration Info
 	echo "<p>Number of altered files:" >> ../../doc/build/cvsreport.html
-	cd ../..; cvs log -d ">`date --date='8 days ago' +\"%Y-%m-%d\"`" \
+	cd ../..; cvs log \
+	-d ">`date --date='$(TIMEAGO) days ago' +\"%Y-%m-%d\"`" \
 	loncom CAPA doc 2>/dev/null | perl \
 	loncom/build/cvsfilter.pl | grep '^Working file:' | cut -b15- | \
 	wc -l >> doc/build/cvsreport.html
 	# Listing of Altered Files
 	echo "</p><p>Altered files:</p><p><pre>" >> \
 	../../doc/build/cvsreport.html
-	cd ../..; cvs log -d ">`date --date='8 days ago' +\"%Y-%m-%d\"`" \
+	cd ../..; cvs log \
+	-d ">`date --date='$(TIMEAGO) days ago' +\"%Y-%m-%d\"`" \
 	loncom CAPA doc 2>/dev/null | \
 	perl loncom/build/cvsfilter.pl | grep '^Working file:' | cut -b15- \
 	>> doc/build/cvsreport.html