From mboxrd@z Thu Jan 1 00:00:00 1970 From: rmccabe@sourceware.org Date: 10 Oct 2006 17:51:06 -0000 Subject: [Cluster-devel] conga/luci/docs Makefile Message-ID: <20061010175106.32568.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: conga Changes by: rmccabe at sourceware.org 2006-10-10 17:51:05 Modified files: luci/docs : Makefile Log message: support importing the docs to the server via "make import" Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/docs/Makefile.diff?cvsroot=cluster&r1=1.1&r2=1.2 --- conga/luci/docs/Makefile 2006/06/02 00:14:27 1.1 +++ conga/luci/docs/Makefile 2006/10/10 17:51:05 1.2 @@ -1,5 +1,11 @@ +LUCI_HOST=luci +LUCI_USER=admin +LUCI_PASS=changeme +LUCI_FTP=$(LUCI_HOST):8021 +LUCI_HTTP=http://$(LUCI_HOST):8080/luci - +all: + @true docs: @@ -13,4 +19,13 @@ distclean: +# import page local page templates to the Luci server +import: + @if test "$(FILES)"; then \ + ../load_site.py -u $(LUCI_USER):$(LUCI_PASS) $(LUCI_HTTP)/doc/ $(FILES) ; \ + else \ + find . -follow -maxdepth 1 -type f -not -name "Makefile*" -not -name ".*" -print0 | xargs -0 ../load_site.py -u $(LUCI_USER):$(LUCI_PASS) $(LUCI_HTTP)/doc/ ; \ + fi +export: + @wget -q -r -nH --cut-dirs=2 "ftp://$(LUCI_USER):$(LUCI_PASS)@$(LUCI_FTP)/luci/doc/*"