web/hosts/issues/reports Makefile.in,1.7,1.8

Tobias Hunger <[email protected]> Wed, 20 Aug 2003 06:33:11 -0500
Newsgroups gmane.comp.video.fresco.cvs
Message-ID <[email protected]>
Update of /cvs/fresco/web/hosts/issues/reports
In directory purcel:/tmp/cvs-serv14118/hosts/issues/reports

Modified Files:
	Makefile.in 
Log Message:
* Add files to reenable user registration (new files needed for the email
    challenge introduced in roundup 0.6)
* Install html/home (the file is in CVS, the page on the active tracker
    says somebody deleted that file?)
* Make sure directories are there before installing into them.
* Report-generation gracefully fails now (generates empty reports) if
    the tracker is not available.


Index: Makefile.in
===================================================================
RCS file: /cvs/fresco/web/hosts/issues/reports/Makefile.in,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- Makefile.in	17 Aug 2003 14:24:53 -0000	1.7
+++ Makefile.in	20 Aug 2003 11:33:08 -0000	1.8
@@ -13,6 +13,7 @@
 all: $(reports)
 
 install: all
+	mkdir -p $(sitedir)/reports/
 	cp $(reports) $(sitedir)/reports/
 
 status.html:	status.xml status_data.xml $(data) $(xsl)
@@ -24,7 +25,10 @@
 
 status_data.xml: .force
 	@echo generating $@
-	$(srcdir)/statusreport.py $(tracker_instance) > $@
+	$(srcdir)/statusreport.py $(tracker_instance) > $@ || \
+	( echo "<?xml version='1.0' encoding='UTF-8'?>" > $@ && \
+	  echo "<status>" >> $@ && \
+	  echo "</status>" >> $@ )
 
 tasks.html:	tasks.xml tasks_data.xml $(data) $(xsl)
 	@echo generating $@
@@ -35,6 +39,9 @@
 
 tasks_data.xml: .force
 	@echo generating $@
-	$(srcdir)/taskreport.py $(tracker_instance) > $@
+	$(srcdir)/taskreport.py $(tracker_instance) > $@ || \
+	( echo "<?xml version='1.0' encoding='UTF-8'?>" > $@ && \
+          echo "<tasks>" >> $@ && \
+          echo "</tasks>" >> $@ )
 
 clean: