trans-coord-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The `sync' rule is not robust; expected to fail tonight


From: Yavor Doganov
Subject: Re: The `sync' rule is not robust; expected to fail tonight
Date: Mon, 04 Feb 2008 13:58:28 +0000

OK to commit this quick "fix"?
--- GNUmakefile 04 фев 2008 13:08:13 +0200      1.25
+++ GNUmakefile 04 фев 2008 15:56:14 +0200      
@@ -39,6 +39,9 @@
 CVSSKIP := echo "SKIP:"
 endif
 
+# Email addresses for notifications.
+devel_addr := address@hidden
+
 rootdir := ../..
 
 # FIXME: footer-short and footer-min are remnants from the old-new
@@ -242,6 +245,11 @@
 .PHONY: sync
 sync: 
        for file in $(abs-files-to-sync) ; do \
-         cp -p --update $(wwwdir)/$$file $(rootdir)/$$file ; done
+         if [ ! -f $(wwwdir)/$$file ] ; then \
+           echo "$$file is missing in www; update the variable." \
+           | mail -s "sync: missing file" $(devel_addr) ; \
+         else \
+           cp -p --update $(wwwdir)/$$file $(rootdir)/$$file ; \
+         fi ; done
        cd $(rootdir) ; \
          $(CVS) commit -m "Automatic sync from the master www repository."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]