]> pere.pagekite.me Git - text-destroy-surveillance.git/commitdiff
Adjust build slightly.
authorPetter Reinholdtsen <pere@hungry.com>
Sun, 6 Sep 2020 13:54:18 +0000 (15:54 +0200)
committerPetter Reinholdtsen <pere@hungry.com>
Sun, 6 Sep 2020 13:54:18 +0000 (15:54 +0200)
Makefile
book.xml
bookinfo.xml [new file with mode: 0644]

index 50a0068405c12c2cb47f3f668eaf126f71bf3cca..618b4e07011e1ef8427e8c5626dfdc5d605d50de 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,12 @@
 SOURCE=how-to-destroy-surveillance-capitalism
-GENERATED = $(SOURCE).xml $(SOURCE).pdf
+GENERATED = $(SOURCE).xml $(SOURCE).pdf \
+       $(SOURCE).nb.xml $(SOURCE).nb.pdf
 
 PANDOC_OPTS = \
-  --top-level-division=chapter \
   -t docbook4
 
 DBLATEX_OPTS = \
+  -T simple \
   -P page.width=6in \
   -P page.height=9in \
   -P page.margin.inner=0.8in \
@@ -57,3 +58,8 @@ lint: book.xml
 
 clean:
        $(RM) *~ $(GENERATED) complete-book.xml
+
+distclean: clean
+
+stats:
+       for f in po/*.po; do printf "$$f "; msgfmt --output /dev/null --statistics $$f; done
index bd345f6f96656072d61a5d334ddafec31bddce79..65df28fe7f44d031c0f5a2447e052e331e5e738f 100644 (file)
--- a/book.xml
+++ b/book.xml
@@ -4,46 +4,10 @@
  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" []>
 
 <book id="index" lang="en">
-  <bookinfo>
+  <xi:include href="bookinfo.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+  <chapter label="">
     <title>How to Destroy Surveillance Capitalism</title>
-    <subtitle></subtitle>
-    <pubdate>2020-??-??</pubdate>
-    <edition>1</edition>
-    <releaseinfo>git-utgaven</releaseinfo>
-    <authorgroup>
-      <author>
-       <firstname>Cory</firstname>
-       <surname>Doctorow</surname>
-      </author>
-    </authorgroup>
-    <publisher>
-      <publishername>Petter Reinholdtsen</publishername>
-      <address><city>Oslo</city></address>
-    </publisher>
-
-    <legalnotice>
-      <para>
-       <inlinemediaobject>
-         <imageobject>
-           <imagedata fileref="images/cc.png" contentdepth="3em" width="100%" align="center"/>
-         </imageobject>
-         <imageobject>
-           <imagedata fileref="images/cc.svg" contentdepth="3em" width="100%" align="center"/>
-         </imageobject>
-         <textobject>
-           <phrase>Creative Commons, Some rights reserved</phrase>
-         </textobject>
-       </inlinemediaobject>
-      </para>
-
-      <para>
-       This book is licensed under a Creative Commons license. This
-       license permits any use of this work, so long as attribution
-       is given.  For more information about the license visit
-       <ulink url="http://creativecommons.org/licenses/by/1.0/"/>.
-      </para>
-    </legalnotice>
-  </bookinfo>
-  <xi:include href="how-to-destroy-surveillance-capitalism.xml#xpointer(/article/chapter)"
+  <xi:include href="how-to-destroy-surveillance-capitalism.xml#xpointer(/article/sect1)"
              xmlns:xi="http://www.w3.org/2001/XInclude" />
+  </chapter>
 </book>
diff --git a/bookinfo.xml b/bookinfo.xml
new file mode 100644 (file)
index 0000000..4a7369d
--- /dev/null
@@ -0,0 +1,38 @@
+<bookinfo>
+  <title>How to Destroy Surveillance Capitalism</title>
+  <!-- subtitle></subtitle -->
+  <pubdate>2020-??-??</pubdate>
+  <authorgroup>
+    <author>
+      <firstname>Cory</firstname>
+      <surname>Doctorow</surname>
+    </author>
+  </authorgroup>
+  <publisher>
+    <publishername>Petter Reinholdtsen</publishername>
+    <address><city>Oslo</city></address>
+  </publisher>
+
+  <legalnotice>
+    <para>
+      <inlinemediaobject>
+       <imageobject>
+         <imagedata fileref="images/cc.png" contentdepth="3em" width="100%" align="center"/>
+       </imageobject>
+       <imageobject>
+         <imagedata fileref="images/cc.svg" contentdepth="3em" width="100%" align="center"/>
+       </imageobject>
+       <textobject>
+         <phrase>Creative Commons, Some rights reserved</phrase>
+       </textobject>
+      </inlinemediaobject>
+    </para>
+
+    <para>
+      This book is licensed under a Creative Commons license. This
+      license permits any use of this work, so long as attribution
+      is given.  For more information about the license visit
+      <ulink url="http://creativecommons.org/licenses/by/1.0/"/>.
+    </para>
+  </legalnotice>
+</bookinfo>