]> pere.pagekite.me Git - text-free-culture-lessig.git/commitdiff
First build rules.
authorPetter Reinholdtsen <pere@hungry.com>
Mon, 9 Jul 2012 07:13:54 +0000 (09:13 +0200)
committerPetter Reinholdtsen <pere@hungry.com>
Mon, 9 Jul 2012 07:13:54 +0000 (09:13 +0200)
Makefile [new file with mode: 0644]
README.md
po4a.cfg [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
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 $^  > $@
index ae573ddddd0fe3deb8e4cc67c196e8b706cbc5ba..953fc371ae0e97a114532a59c6ed4f41d4e9c101 100644 (file)
--- 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
+<URL: http://www.sslug.dk/~chlor/lessig/ >.
+
+Source:
+https://github.com/petterreinholdtsen/free-culture-lessig.git
+
diff --git a/po4a.cfg b/po4a.cfg
new file mode 100644 (file)
index 0000000..a6c00a5
--- /dev/null
+++ b/po4a.cfg
@@ -0,0 +1,4 @@
+[po_directory] .
+
+[type: docbook] freeculture.xml $lang:$lang.xml \
+       opt:"-o untranslated='<listitem>' -M UTF-8 -k 5"