From aa680ca28450f7e109dadbc959739c2b0c004b76 Mon Sep 17 00:00:00 2001
From: Nico Schottelius
Date: Tue, 17 Jan 2006 12:11:05 +0100
Subject: [PATCH] Generate and publish documentation via make
---
Makefile | 10 ++++++++++
doc/ccollect.html | 4 +++-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 877a399..c7ad42f 100644
--- a/Makefile
+++ b/Makefile
@@ -14,12 +14,22 @@ destination=$(bindir)/$(CCOLLECT)
path_dir=/usr/local/bin
path_destination=$(path_dir)/$(CCOLLECT)
+# where to publish
+host=creme.schottelius.org
+dir=www/org/schottelius/linux/ccollect
+docdir=$(dir)/doc
+
all:
@echo "Nothing to make, make install."
documentation:
+ @echo "Generating HTML-documentation"
@asciidoc -n -o doc/ccollect.html doc/ccollect.text
+publish-doc: documentation
+ @chmod a+r doc/ccollect.html
+ @scp doc/ccollect.html doc/ccollect.text $(host):$(docdir)
+
install:
$(INSTALL) -D -m 0755 -s $(CCOLLECT) $(destination)
$(LN) $(destination) $(path_destination)
diff --git a/doc/ccollect.html b/doc/ccollect.html
index 40a6143..91fb91c 100644
--- a/doc/ccollect.html
+++ b/doc/ccollect.html
@@ -522,6 +522,8 @@ they will still be transferred!
This hint was reported by Marcus Wagner.
+5.3. Re-using already created rsync-backups
+mkdir intervall.0 ; mv * intervall;
6. Examples
@@ -603,7 +605,7 @@ srwali01:/etc/ccollect/sources# du -sh /mnt/hdbackup/wl6/*