From: Brian Warner <warner@allmydata.com>
Date: Mon, 2 Jul 2007 22:10:20 +0000 (-0700)
Subject: makefile: change upload-figleaf target to create a 'current' link
X-Git-Url: https://git.rkrishnan.org/specifications/listings/-?a=commitdiff_plain;h=715f44110feb91985316019451b03f5ab0c120a0;p=tahoe-lafs%2Ftahoe-lafs.git

makefile: change upload-figleaf target to create a 'current' link
---

diff --git a/GNUmakefile b/GNUmakefile
index 61146885..4803b39d 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -151,8 +151,17 @@ figleaf-output:
 
 # 'upload-figleaf' is meant to be run with an UPLOAD_TARGET=host:/dir setting
 ifdef UPLOAD_TARGET
+
+ifndef UPLOAD_HOST
+$(error UPLOAD_HOST must be set when using UPLOAD_TARGET)
+endif
+ifndef COVERAGEDIR
+$(error COVERAGEDIR must be set when using UPLOAD_TARGET)
+endif
+
 upload-figleaf:
 	rsync -a coverage-html/ $(UPLOAD_TARGET)
+	ssh $(UPLOAD_HOST) make update-tahoe-figleaf $(COVERAGEDIR)
 else
 upload-figleaf:
 	echo "this target is meant to be run with UPLOAD_TARGET=host:/path/"