summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Ergo Project) <jeroen.van.meeuwen@ergo-project.org>2011-01-05 23:42:56 (GMT)
committerJeroen van Meeuwen (Ergo Project) <jeroen.van.meeuwen@ergo-project.org>2011-01-05 23:42:56 (GMT)
commit4d849a6e64d30d8d1f29b8d82f87f692d617069b (patch)
treea827a49c142cd188f3677586d7f10941b24f9874 /Makefile
parent090f09897fa635c5b844fc7046fb1eaa6e181adb (diff)
downloadkolab-docs-4d849a6e64d30d8d1f29b8d82f87f692d617069b.tar.gz
Updates to the documentation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile50
1 files changed, 10 insertions, 40 deletions
diff --git a/Makefile b/Makefile
index df218c3..63b7a2d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,41 +1,11 @@
-PRODUCT=Kolab
-VERSION=2.3.0
-
-BUILD_FORMATS="pdf html html-single"
-BUILD_LANGS="en-US"
-
-SRCDIR :=$(shell pwd)
-
-all: clean
- @mkdir builds
- @sed -i -r \
- -e 's|ENTITY PRODUCT_VERSION "([\.0-9]+)"|ENTITY PRODUCT_VERSION "$(VERSION)"|g' \
- -e 's|productnumber>([\.0-9]+)</productnumber|productnumber>$(VERSION)</productnumber|g' \
- `find -type f -name "Book_Info.xml" -or -name "*.ent"`
- for dir in `find -mindepth 1 -maxdepth 1 -type d -exec basename {} \; | sort`; do \
- if [ -f "$$dir/publican.cfg" ]; then \
- cd $$dir; \
- publican build \
- --formats=$(shell echo $(BUILD_FORMATS) | sed -e 's/ /,/g' -e 's/"//g') \
- --langs=$(shell echo $(BUILD_LANGS) | sed -e 's/ /,/g' -e 's/"//g') \
- || exit 1; \
- for build in `find tmp/ -mindepth 2 -maxdepth 2 -type d | sort`; do \
- [ "`basename $$build`" == "xml" ] && continue; \
- [ "`basename $$build`" == "xml_tmp" ] && continue; \
- lang=`echo $$build | awk -F'/' '{print $$2}'`; \
- format=`echo $$build | awk -F'/' '{print $$3}'`; \
- cp -a $$build $(SRCDIR)/builds/$(PRODUCT)-$(VERSION)-$$dir-$$lang.$$format; \
- done; \
- cd ../; \
- fi; \
- done
-
-clean:
- @rm -rf builds
- @for dir in `ls -d */`; do \
- if [ -f "$$dir/publican.cfg" ]; then \
- cd $$dir; \
- publican clean; \
- cd ../; \
- fi; \
+SUBDIRS = \
+ Administrator_Guide \
+ Deployment_Guide \
+ Development_Manual \
+ Installation_Guide
+
+all:
+ @for dir in $(SUBDIRS); do \
+ cp -a Common_Content/en-US/*.xml $$dir/en-US/.; \
+ make -C $$dir; \
done