summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--About_Kolab_Groupware/Makefile12
-rw-r--r--Administrator_Guide/Makefile12
-rw-r--r--Architecture_and_Design/Makefile12
-rw-r--r--Deployment_Guide/Makefile12
-rw-r--r--Development_Manual/Makefile12
-rw-r--r--Installation_Guide/Makefile12
-rw-r--r--Makefile4
-rw-r--r--Release_Notes/Makefile12
-rw-r--r--Testing_Reference/Makefile12
9 files changed, 84 insertions, 16 deletions
diff --git a/About_Kolab_Groupware/Makefile b/About_Kolab_Groupware/Makefile
index 82cf4ef..b57c972 100644
--- a/About_Kolab_Groupware/Makefile
+++ b/About_Kolab_Groupware/Makefile
@@ -1,8 +1,12 @@
PACKAGE = "About_Kolab_Groupware"
all: clean clean_ids
- publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf
- publican install_book --site_config=../site.cfg --lang=en-US
+ @publican update_pot
+ @publican update_po --langs=all
+ @publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf
+ @for lang in $$(ls -d *-*/); do \
+ publican install_book --site_config=../site.cfg --lang=$$lang; \
+ done
clean:
@publican clean
@@ -15,3 +19,7 @@ clean_ids:
-e 's/((\s{4})+)\s*/\1/g' \
-e 's/\s*$$//g' \
`find en-US/ -type f -name "*.xml"`
+
+add-language:
+ @publican update_pot
+ @publican update_po --langs=$(LANGUAGE)
diff --git a/Administrator_Guide/Makefile b/Administrator_Guide/Makefile
index 1516938..67b4919 100644
--- a/Administrator_Guide/Makefile
+++ b/Administrator_Guide/Makefile
@@ -1,8 +1,12 @@
PACKAGE = "Administrator_Guide"
all: clean clean_ids
- publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf
- publican install_book --site_config=../site.cfg --lang=en-US
+ @publican update_pot
+ @publican update_po --langs=all
+ @publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf
+ @for lang in $$(ls -d *-*/); do \
+ publican install_book --site_config=../site.cfg --lang=$$lang; \
+ done
clean:
@publican clean
@@ -18,3 +22,7 @@ clean_ids:
pdf: clean clean_ids
@publican build --embedtoc --publish --langs=all --formats=pdf
+
+add-language:
+ @publican update_pot
+ @publican update_po --langs=$(LANGUAGE)
diff --git a/Architecture_and_Design/Makefile b/Architecture_and_Design/Makefile
index 3def933..b8b9a4d 100644
--- a/Architecture_and_Design/Makefile
+++ b/Architecture_and_Design/Makefile
@@ -1,8 +1,12 @@
PACKAGE = "Architecture_and_Design"
all: clean clean_ids
- publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf
- publican install_book --site_config=../site.cfg --lang=en-US
+ @publican update_pot
+ @publican update_po --langs=all
+ @publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf
+ @for lang in $$(ls -d *-*/); do \
+ publican install_book --site_config=../site.cfg --lang=$$lang; \
+ done
clean:
@publican clean
@@ -20,3 +24,7 @@ clean_ids:
# Additional quick build targets
pdf: clean clean_ids
@publican build --embedtoc --publish --langs=en-US --formats=pdf
+
+add-language:
+ @publican update_pot
+ @publican update_po --langs=$(LANGUAGE)
diff --git a/Deployment_Guide/Makefile b/Deployment_Guide/Makefile
index a9a0067..4d4a1ea 100644
--- a/Deployment_Guide/Makefile
+++ b/Deployment_Guide/Makefile
@@ -1,8 +1,12 @@
PACKAGE = "Deployment_Guide"
all: clean clean_ids
- publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf
- publican install_book --site_config=../site.cfg --lang=en-US
+ @publican update_pot
+ @publican update_po --langs=all
+ @publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf
+ @for lang in $$(ls -d *-*/); do \
+ publican install_book --site_config=../site.cfg --lang=$$lang; \
+ done
clean:
@publican clean
@@ -16,3 +20,7 @@ clean_ids:
-e 's/((\s{4})+)\s*/\1/g' \
-e 's/\s*$$//g' \
`find en-US/ -type f -name "*.xml"`
+
+add-language:
+ @publican update_pot
+ @publican update_po --langs=$(LANGUAGE)
diff --git a/Development_Manual/Makefile b/Development_Manual/Makefile
index 6da5a94..0dd2724 100644
--- a/Development_Manual/Makefile
+++ b/Development_Manual/Makefile
@@ -1,8 +1,12 @@
PACKAGE = "Development_Manual"
all: clean clean_ids
- publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf
- publican install_book --site_config=../site.cfg --lang=en-US
+ @publican update_pot
+ @publican update_po --langs=all
+ @publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf
+ @for lang in $$(ls -d *-*/); do \
+ publican install_book --site_config=../site.cfg --lang=$$lang; \
+ done
clean:
@publican clean
@@ -15,3 +19,7 @@ clean_ids:
-e 's/((\s{4})+)\s*/\1/g' \
-e 's/\s*$$//g' \
`find en-US/ -type f -name "*.xml"`
+
+add-language:
+ @publican update_pot
+ @publican update_po --langs=$(LANGUAGE)
diff --git a/Installation_Guide/Makefile b/Installation_Guide/Makefile
index 33fb445..a791d39 100644
--- a/Installation_Guide/Makefile
+++ b/Installation_Guide/Makefile
@@ -1,11 +1,15 @@
PACKAGE = "Installation_Guide"
all: clean clean_ids
+ @publican update_pot
+ @publican update_po --langs=all
@for audience in enterprise community; do \
sed -r -i -e "s/^condition:.*/condition: $$audience/g" publican.cfg; \
sed -r -i -e "s/^docname:.*/docname: $$(echo $${audience:0:1} | tr '[:lower:]' '[:upper:]')$${audience:1}_$(PACKAGE)/g" publican.cfg; \
- publican build --embedtoc --publish --langs=en-US --formats=html,html-single,pdf; \
- publican install_book --site_config=../site.cfg --lang=en-US; \
+ publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf; \
+ for lang in $$(ls -d *-*/); do \
+ publican install_book --site_config=../site.cfg --lang=$$lang; \
+ done; \
done
@sed -r -i -e 's/^condition:.*/condition: community/g' publican.cfg
@@ -20,3 +24,7 @@ clean_ids:
-e 's/((\s{4})+)\s*/\1/g' \
-e 's/\s*$$//g' \
`find en-US/ -type f -name "*.xml"`
+
+add-language:
+ @publican update_pot
+ @publican update_po --langs=$(LANGUAGE)
diff --git a/Makefile b/Makefile
index cb5579c..613c492 100644
--- a/Makefile
+++ b/Makefile
@@ -27,3 +27,7 @@ upload: all
make -C $$dir upload; \
done
+add-language:
+ @for dir in $(SUBDIRS); do \
+ make -C $$dir add-language; \
+ done
diff --git a/Release_Notes/Makefile b/Release_Notes/Makefile
index e877174..fb2999f 100644
--- a/Release_Notes/Makefile
+++ b/Release_Notes/Makefile
@@ -1,8 +1,12 @@
PACKAGE = "Release_Notes"
all: clean clean_ids
- publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf
- publican install_book --site_config=../site.cfg --lang=en-US
+ @publican update_pot
+ @publican update_po --langs=all
+ @publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf
+ @for lang in $$(ls -d *-*/); do \
+ publican install_book --site_config=../site.cfg --lang=$$lang; \
+ done
clean:
@publican clean
@@ -15,3 +19,7 @@ clean_ids:
-e 's/((\s{4})+)\s*/\1/g' \
-e 's/\s*$$//g' \
`find en-US/ -type f -name "*.xml"`
+
+add-language:
+ @publican update_pot
+ @publican update_po --langs=$(LANGUAGE)
diff --git a/Testing_Reference/Makefile b/Testing_Reference/Makefile
index 350c507..1e3b7fc 100644
--- a/Testing_Reference/Makefile
+++ b/Testing_Reference/Makefile
@@ -1,8 +1,12 @@
PACKAGE = "Testing_Reference"
all: clean clean_ids
- publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf
- publican install_book --site_config=../site.cfg --lang=en-US
+ @publican update_pot
+ @publican update_po --langs=all
+ @publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf
+ @for lang in $$(ls -d *-*/); do \
+ publican install_book --site_config=../site.cfg --lang=$$lang; \
+ done
clean:
@publican clean
@@ -15,3 +19,7 @@ clean_ids:
-e 's/((\s{4})+)\s*/\1/g' \
-e 's/\s*$$//g' \
`find en-US/ -type f -name "*.xml"`
+
+add-language:
+ @publican update_pot
+ @publican update_po --langs=$(LANGUAGE)