r3810 - jhalfs/trunk/BLFS

pierre at higgs.linuxfromscratch.org pierre at higgs.linuxfromscratch.org
Mon Nov 17 12:46:38 PST 2014

Author: pierre
Date: Mon Nov 17 12:46:38 2014
New Revision: 3810

After generating book-html, we apply sed s at ../images at images@ to the html
files. This is not OK, since that could perfectly match /*/images and change
it to just images...


Modified: jhalfs/trunk/BLFS/gen_pkg_book.sh
--- jhalfs/trunk/BLFS/gen_pkg_book.sh	Tue Nov  4 04:57:31 2014	(r3809)
+++ jhalfs/trunk/BLFS/gen_pkg_book.sh	Mon Nov 17 12:46:38 2014	(r3810)
@@ -170,8 +170,8 @@
   cp ${BLFS_XML}/images/*.png ${BookHtml}/images
 for ht in ${BookHtml}/*.html
-  do sed -i 's at ../stylesheets at stylesheets@' $ht
-  sed -i 's at ../images at images@' $ht
+  do sed -i 's@\.\./stylesheets at stylesheets@' $ht
+  sed -i 's@\.\./images at images@' $ht
 echo -en "\n\tGenerating the build scripts ...\n"
 rm -rf scripts

More information about the alfs-log mailing list