[blfs-book] r11922 - trunk/BOOK/general/graphlib

igor at higgs.linuxfromscratch.org igor at higgs.linuxfromscratch.org
Sun Oct 6 02:48:51 PDT 2013


Author: igor
Date: Sun Oct  6 02:48:51 2013
New Revision: 11922

Log:
use sed instead of temporary environment variable for libjpeg-turbo docsdir

Modified:
   trunk/BOOK/general/graphlib/libjpeg-turbo.xml

Modified: trunk/BOOK/general/graphlib/libjpeg-turbo.xml
==============================================================================
--- trunk/BOOK/general/graphlib/libjpeg-turbo.xml	Sun Oct  6 01:11:10 2013	(r11921)
+++ trunk/BOOK/general/graphlib/libjpeg-turbo.xml	Sun Oct  6 02:48:51 2013	(r11922)
@@ -107,9 +107,9 @@
       Now, as the <systemitem class="username">root</systemitem> user:
     </para>
 
-<screen role="root"><userinput>docsdir=/usr/share/doc/libjpeg-turbo-&libjpeg-turbo-version; &&
-make docdir=$docsdir exampledir=$docsdir install &&
-unset docsdir</userinput></screen>
+<screen role="root"><userinput>sed -i -e '/^docdir/ s/$/\/libjpeg-turbo-&libjpeg-turbo-version;/' \
+       -e '/^exampledir/ s/$/\/libjpeg-turbo-&libjpeg-turbo-version;/' Makefile &&
+make install</userinput></screen>
 
   </sect2>
 
@@ -117,10 +117,15 @@
     <title>Command Explanations</title>
 
     <para>
-      <option>--with-jpeg8</option>: This switch enables compatibility
+      <parameter>--with-jpeg8</parameter>: This switch enables compatibility
       with <application>libjpeg</application> version 8.
     </para>
 
+    <para>
+      <command>sed -i -e ...</command> This command fixes Makefile to install
+      documentation and examples in a separate directory.
+    </para>
+
     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
       href="../../xincludes/static-libraries.xml"/>
 



More information about the blfs-book mailing list