From f61eaa774af7e83b47c08d1895ae2b77b2a527a6 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Tue, 21 Oct 2014 15:30:06 +0000 Subject: [PATCH] Add a web-faq target that only updates the FAQ on the webserver --- GNUmakefile.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index 772609fd..3ca8bade 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -1,6 +1,6 @@ # Note: Makefile is built automatically from Makefile.in # -# $Id: GNUmakefile.in,v 1.224 2014/10/21 15:29:34 fabiankeil Exp $ +# $Id: GNUmakefile.in,v 1.225 2014/10/21 15:29:46 fabiankeil Exp $ # # Written by and Copyright (C) 2001-2013 members of the # Privoxy team. http://www.privoxy.org/ @@ -144,6 +144,7 @@ DOC_DIR = doc/source DOC_TMP = $(DOC_DIR)/tmp DOC_STATUS = @DOC_STATUS@ TIDY = tidy -modify -indent -wrap 78 --tidy-mark no +RSYNC = rsync -av # Program to do LF->CRLF DOSFILTER = $(PERL) -p -e 's/\n/\r\n/' @@ -643,6 +644,12 @@ web-actions: clean-editor-files @$(SSH) ijbswa.sourceforge.net 'find $(WWW_ROOT)/htdocs/actions/ -type f | xargs chmod 664 2>/dev/null' @$(SSH) ijbswa.sourceforge.net 'chmod 666 $(WWW_ROOT)/htdocs/actions/results/actions-feedback.txt 2>/dev/null' +web-faq: + @$(ECHO) Updating the FAQ on the webserver ... + @$(RSYNC) doc/webserver/faq/*.html shell.sourceforge.net:$(WWW_ROOT)/htdocs/faq + @$(ECHO) Enforcing reasonable permissions ... + @$(SSH) shell.sourceforge.net 'find $(WWW_ROOT)/htdocs/faq/ -type f | xargs chmod 664 2>/dev/null' + ############################################################################# # # Try to clean up the generated HTML files. -- 2.39.2