diff options
author | Jeroen van Meeuwen (Ergo Project) <jeroen.van.meeuwen@ergo-project.org> | 2011-01-05 23:42:56 (GMT) |
---|---|---|
committer | Jeroen van Meeuwen (Ergo Project) <jeroen.van.meeuwen@ergo-project.org> | 2011-01-05 23:42:56 (GMT) |
commit | 4d849a6e64d30d8d1f29b8d82f87f692d617069b (patch) | |
tree | a827a49c142cd188f3677586d7f10941b24f9874 /Makefile | |
parent | 090f09897fa635c5b844fc7046fb1eaa6e181adb (diff) | |
download | kolab-docs-4d849a6e64d30d8d1f29b8d82f87f692d617069b.tar.gz |
Updates to the documentation
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 50 |
1 files changed, 10 insertions, 40 deletions
@@ -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 |