After generating book-html, we apply sed s@../images@images@ to the html

files. This is not OK, since that could perfectly match /*/images and change
it to just images...
This commit is contained in:
Pierre Labastie 2014-11-17 20:46:38 +00:00
parent 82808d1b14
commit c5650f96c7

View file

@ -170,8 +170,8 @@ if [ ! -d ${BookHtml}/images ]
cp ${BLFS_XML}/images/*.png ${BookHtml}/images cp ${BLFS_XML}/images/*.png ${BookHtml}/images
fi fi
for ht in ${BookHtml}/*.html for ht in ${BookHtml}/*.html
do sed -i 's@../stylesheets@stylesheets@' $ht do sed -i 's@\.\./stylesheets@stylesheets@' $ht
sed -i 's@../images@images@' $ht sed -i 's@\.\./images@images@' $ht
done done
echo -en "\n\tGenerating the build scripts ...\n" echo -en "\n\tGenerating the build scripts ...\n"
rm -rf scripts rm -rf scripts