summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-02-18 13:24:01 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-02-18 13:24:01 (GMT)
commit0d0c538e3924ed6ac9f5ca6778685a14a04c45ad (patch)
tree36534776d4836a119a1b9f89d71235aa871a4390
parent6b521edc1f63a888138ad816977082079731f07b (diff)
downloadkolab-docs-0d0c538e3924ed6ac9f5ca6778685a14a04c45ad.tar.gz
Create different make targets for all formats and languages versus uploading the content
-rw-r--r--Administrator_Guide/Makefile2
-rw-r--r--Deployment_Guide/Makefile2
-rw-r--r--Development_Manual/Makefile2
-rw-r--r--Installation_Guide/Makefile10
-rw-r--r--Release_Notes/Makefile2
-rw-r--r--Testing_Reference/Makefile2
6 files changed, 20 insertions, 0 deletions
diff --git a/Administrator_Guide/Makefile b/Administrator_Guide/Makefile
index eeffdbb..524c797 100644
--- a/Administrator_Guide/Makefile
+++ b/Administrator_Guide/Makefile
@@ -2,6 +2,8 @@ PACKAGE = "Administrator_Guide"
all: clean clean_ids
@publican build --langs=en-US --formats=html,html-single,pdf
+
+upload: all
@rsync -aHvz tmp/en-US/{html,html-single,pdf} hosted.kolabsys.com:./public_html/kolab-2.3-docs/$(PACKAGE)/
clean:
diff --git a/Deployment_Guide/Makefile b/Deployment_Guide/Makefile
index 1ec237d..4e3c7d0 100644
--- a/Deployment_Guide/Makefile
+++ b/Deployment_Guide/Makefile
@@ -2,6 +2,8 @@ PACKAGE = "Deployment_Guide"
all: clean clean_ids
@publican build --langs=en-US --formats=html,html-single,pdf
+
+upload: all
@rsync -aHvz tmp/en-US/{html,html-single,pdf} hosted.kolabsys.com:./public_html/kolab-2.3-docs/$(PACKAGE)/
clean:
diff --git a/Development_Manual/Makefile b/Development_Manual/Makefile
index bef33ef..f27c571 100644
--- a/Development_Manual/Makefile
+++ b/Development_Manual/Makefile
@@ -2,6 +2,8 @@ PACKAGE = "Development_Manual"
all: clean clean_ids
@publican build --langs=en-US --formats=html,html-single,pdf
+
+upload: all
@rsync -aHvz tmp/en-US/{html,html-single,pdf} hosted.kolabsys.com:./public_html/kolab-2.3-docs/$(PACKAGE)/
clean:
diff --git a/Installation_Guide/Makefile b/Installation_Guide/Makefile
index 9434d0e..d404559 100644
--- a/Installation_Guide/Makefile
+++ b/Installation_Guide/Makefile
@@ -4,6 +4,16 @@ all: clean clean_ids
@for audience in enterprise community; do \
sed -r -i -e "s/^condition:.*/condition: $$audience/g" publican.cfg; \
publican build --langs=en-US --formats=html,html-single,pdf; \
+ for format in html html-single pdf; do \
+ mv tmp/en-US/$$format tmp/$$(echo $${audience:0:1} | tr '[:lower:]' '[:upper:]')$${audience:1}_en-US_$$format; \
+ done; \
+ done
+ @sed -r -i -e 's/^condition:.*/condition: community/g' publican.cfg
+
+upload: clean clean_ids
+ @for audience in enterprise community; do \
+ sed -r -i -e "s/^condition:.*/condition: $$audience/g" publican.cfg; \
+ publican build --langs=en-US --formats=html,html-single,pdf; \
rsync -aHvz tmp/en-US/{html,html-single,pdf} hosted.kolabsys.com:./public_html/kolab-2.3-docs/$$(echo $${audience:0:1} | tr '[:lower:]' '[:upper:]')$${audience:1}_$(PACKAGE)/; \
done
@sed -r -i -e 's/^condition:.*/condition: community/g' publican.cfg
diff --git a/Release_Notes/Makefile b/Release_Notes/Makefile
index 4acee2c..74963a1 100644
--- a/Release_Notes/Makefile
+++ b/Release_Notes/Makefile
@@ -2,6 +2,8 @@ PACKAGE = "Release_Notes"
all: clean clean_ids
@publican build --langs=en-US --formats=html,html-single,pdf
+
+upload: all
@rsync -aHvz tmp/en-US/{html,html-single,pdf} hosted.kolabsys.com:./public_html/kolab-2.3-docs/$(PACKAGE)/
clean:
diff --git a/Testing_Reference/Makefile b/Testing_Reference/Makefile
index 8f7516a..cfde688 100644
--- a/Testing_Reference/Makefile
+++ b/Testing_Reference/Makefile
@@ -2,6 +2,8 @@ PACKAGE = "Testing_Reference"
all: clean clean_ids
@publican build --langs=en-US --formats=html,html-single,pdf
+
+upload: all
@rsync -aHvz tmp/en-US/{html,html-single,pdf} hosted.kolabsys.com:./public_html/kolab-2.3-docs/$(PACKAGE)/
clean: