From: Fabian Keil <fk@fabiankeil.de>
Date: Sun, 14 Nov 2010 14:48:45 +0000 (+0000)
Subject: Let the webserver target update the user-manual symlink automatically.
X-Git-Tag: v_3_0_18~389
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/developer-manual/man-page/static/gitweb.js?a=commitdiff_plain;h=0a782154d6bee97a2ee20dad9e06f177d3f0c082;p=privoxy.git

Let the webserver target update the user-manual symlink automatically.

As a bonus this prevents the webserver target from overwriting
whatever the user-manual symlink currently points to, usually the
documentation from the previous release.
---

diff --git a/GNUmakefile.in b/GNUmakefile.in
index 07451cf8..0ad99128 100644
--- a/GNUmakefile.in
+++ b/GNUmakefile.in
@@ -616,9 +616,12 @@ webserver: tidy
 	@$(ECHO) Please make sure your documentation files are up to date.
 	@$(ECHO) Note that this command updates the home page and scps 
 	@$(ECHO) all stuff to the webserver, it will not remove obsolete documents.
-	@$(ECHO) You will also need to change the user-manual symlink manually.
 	@$(ECHO) -------------------------------------------------------
 
+	@$(ECHO) Replacing the user-manual symlink
+	@$(SSH) shell.sourceforge.net "cd /home/groups/i/ij/ijbswa/htdocs && rm user-manual \
+	 && mkdir -p $(VERSION)/user-manual && ln -s $(VERSION)/user-manual user-manual"
+
 	@$(ECHO) Uploading html
 	@cd doc/webserver; \
           upload=`find . -type f -a -not \( -path "*/CVS*" -o -path "*/results*" \)`; \