[Clfs-dev] clfs-embedded: bradfa: book render: BASEDIR -> RENDERDIR .

akhiezer lfs65 at cruziero.com
Fri Jun 30 11:10:31 PDT 2017


Hi,


For rendering of the book - for at least embedded branch - the file
'BOOK/INSTALL.md' says to use the variable 'BASEDIR' to set the
target dir.


However, it looks like currently that 'BOOK/Makefile' uses instead the
variable 'RENDERDIR': and 'BASEDIR' seems to be entirely absent.


Also, the file 'BOOK/stylesheets/lfs-xsl/pdf.xsl' refers to 'BASEDIR'.


Below, inline & as attachment, is a suggested patch, in case of use;
probly the 'BOOK/stylesheets/lfs-xsl/pdf.xsl' part will be wanted to
be edited before any applying of patch.



rgds,
akh



========================== Start of Patch =========================
#
# Patch generated with:
#
#   LC_ALL=C TZ=UTC0 diff -Naur clfs-mbdd-brdf.upstr/ clfs-mbdd-brdf.cz-adj-BASEDIR-RENDERDIR/
#
# Applies against:
#
#   https://github.com/bradfa/clfs-embedded/
#
# branches:
#  ---
#   * master
#   * 2017.04-fixes
#  ---
#
# ; as of 20170630  .
#
#

diff -Naur clfs-mbdd-brdf.upstr/BOOK/INSTALL.md clfs-mbdd-brdf.cz-adj-BASEDIR-RENDERDIR/BOOK/INSTALL.md
--- clfs-mbdd-brdf.upstr/BOOK/INSTALL.md	2017-04-27 04:34:52.303999977 +0000
+++ clfs-mbdd-brdf.cz-adj-BASEDIR-RENDERDIR/BOOK/INSTALL.md	2017-06-30 15:11:35.476940317 +0000
@@ -31,7 +31,7 @@
 ```
 
 To actually convert the Docbook XML source into rendered form, which will be
-located at ../render by default (override with BASEDIR=), execute:
+located at ../render by default (override with RENDERDIR=), execute:
 
 * To XHTML: `make`
 * To single file XHTML (nochunks): `make nochunks`
diff -Naur clfs-mbdd-brdf.upstr/BOOK/stylesheets/lfs-xsl/pdf.xsl clfs-mbdd-brdf.cz-adj-BASEDIR-RENDERDIR/BOOK/stylesheets/lfs-xsl/pdf.xsl
--- clfs-mbdd-brdf.upstr/BOOK/stylesheets/lfs-xsl/pdf.xsl	2017-04-27 04:34:52.354999979 +0000
+++ clfs-mbdd-brdf.cz-adj-BASEDIR-RENDERDIR/BOOK/stylesheets/lfs-xsl/pdf.xsl	2017-06-30 15:21:26.194962590 +0000
@@ -16,6 +16,11 @@
          xsltproc, thus pofiling must be done in two steps (see Makefile) -->
   <xsl:import href="docbook-xsl-snapshot/fo/docbook.xsl"/>
 
+    <!-- 20170630-cz:
+           * Looks like 'BASEDIR' var is no longer in or used by Makefile:
+             looks like the role is now done by 'RENDERDIR', in Makefile.
+           * Not sure if the 'rm ...' command or effective-equiv, is in
+             current Makefile. -->
     <!-- Uncomment the next for debugging the raw FO code.
          Note that FOP will complaints about a lot of paragraph overflows
          due that verbatim output is also indented.
=========================== End of Patch ==========================





--
-------------- next part --------------

#
# Patch generated with:
#
#   LC_ALL=C TZ=UTC0 diff -Naur clfs-mbdd-brdf.upstr/ clfs-mbdd-brdf.cz-adj-BASEDIR-RENDERDIR/
#
# Applies against:
#
#   https://github.com/bradfa/clfs-embedded/
#
# branches:
#  ---
#   * master
#   * 2017.04-fixes
#  ---
#
# ; as of 20170630  .
#
#

diff -Naur clfs-mbdd-brdf.upstr/BOOK/INSTALL.md clfs-mbdd-brdf.cz-adj-BASEDIR-RENDERDIR/BOOK/INSTALL.md
--- clfs-mbdd-brdf.upstr/BOOK/INSTALL.md	2017-04-27 04:34:52.303999977 +0000
+++ clfs-mbdd-brdf.cz-adj-BASEDIR-RENDERDIR/BOOK/INSTALL.md	2017-06-30 15:11:35.476940317 +0000
@@ -31,7 +31,7 @@
 ```
 
 To actually convert the Docbook XML source into rendered form, which will be
-located at ../render by default (override with BASEDIR=), execute:
+located at ../render by default (override with RENDERDIR=), execute:
 
 * To XHTML: `make`
 * To single file XHTML (nochunks): `make nochunks`
diff -Naur clfs-mbdd-brdf.upstr/BOOK/stylesheets/lfs-xsl/pdf.xsl clfs-mbdd-brdf.cz-adj-BASEDIR-RENDERDIR/BOOK/stylesheets/lfs-xsl/pdf.xsl
--- clfs-mbdd-brdf.upstr/BOOK/stylesheets/lfs-xsl/pdf.xsl	2017-04-27 04:34:52.354999979 +0000
+++ clfs-mbdd-brdf.cz-adj-BASEDIR-RENDERDIR/BOOK/stylesheets/lfs-xsl/pdf.xsl	2017-06-30 15:21:26.194962590 +0000
@@ -16,6 +16,11 @@
          xsltproc, thus pofiling must be done in two steps (see Makefile) -->
   <xsl:import href="docbook-xsl-snapshot/fo/docbook.xsl"/>
 
+    <!-- 20170630-cz:
+           * Looks like 'BASEDIR' var is no longer in or used by Makefile:
+             looks like the role is now done by 'RENDERDIR', in Makefile.
+           * Not sure if the 'rm ...' command or effective-equiv, is in
+             current Makefile. -->
     <!-- Uncomment the next for debugging the raw FO code.
          Note that FOP will complaints about a lot of paragraph overflows
          due that verbatim output is also indented.


More information about the Clfs-dev mailing list