From: Petter Reinholdtsen Date: Mon, 9 Jul 2012 07:13:54 +0000 (+0200) Subject: First build rules. X-Git-Tag: edition-2015-10-10~2589 X-Git-Url: https://pere.pagekite.me/gitweb/text-free-culture-lessig.git/commitdiff_plain/e7f2d570dc228f97f874696aecfc1bf944d47975 First build rules. --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6eca7d2 --- /dev/null +++ b/Makefile @@ -0,0 +1,43 @@ +# +# configuration here: +# + +url = http://www.sslug.dk/~chlor/lessig/freeculture.sgml.2004-04-01.gz + +path1=Dokumentasjon/BokenOmLinux +path2='\/Dokumentasjon\/BokenOmLinux\/' + +ORIGLANG = en + +name = freeculture +DEBIAN_EDU_DOC_TITLE=Free Culture +export + +#include ../common/Makefile.common + +DBLATEX = dblatex -T db2latex --backend=xetex --xsl-user=../common/user_param.xsl --xsl-user=../common/xetex_param.xsl -p ../common/pdf.xsl --param=lingua=zh-tw + +all: pdf + +update-translation: freeculture.pot + po4a --no-translations --msgmerge-opt --no-location po4a.cfg + msgcat --no-location -o $(name).pot $(name).pot + +freeculture.nb.po: update-translation + +freeculture.nb.xml: freeculture.nb.po freeculture.xml + po4a --translate-only freeculture.nb.xml po4a.cfg + +pdf: freeculture.nb.pdf + +freeculture.pdf: freeculture.xml + $(DBLATEX) $(name).xml --param=lingua=en + +freeculture.nb.pdf: freeculture.nb.xml + $(DBLATEX) freeculture.nb.xml --param=lingua=nb + +freeculture.xml: + GET $(url) | gunzip > freeculture.xml + +freeculture.pot: freeculture.xml + po4a-gettextize -f docbook -m $^ > $@ diff --git a/README.md b/README.md index ae573dd..953fc37 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,10 @@ free-culture-lessig =================== -Norwegian translation of the book Free Culture by Lessig \ No newline at end of file +Norwegian translation of the book Free Culture by Lessig. Based +on the Docbook version by Hans Schou available from +. + +Source: +https://github.com/petterreinholdtsen/free-culture-lessig.git + diff --git a/po4a.cfg b/po4a.cfg new file mode 100644 index 0000000..a6c00a5 --- /dev/null +++ b/po4a.cfg @@ -0,0 +1,4 @@ +[po_directory] . + +[type: docbook] freeculture.xml $lang:$lang.xml \ + opt:"-o untranslated='' -M UTF-8 -k 5"