diff options
author | Matthew Burgess <matthew@linuxfromscratch.org> | 2004-05-03 10:33:11 +0000 |
---|---|---|
committer | Matthew Burgess <matthew@linuxfromscratch.org> | 2004-05-03 10:33:11 +0000 |
commit | 287ea55da70ceb1f0990554b7db921d525fef816 (patch) | |
tree | 5aff1bbd2cbdc38ec513f0e1ef1a2f456cfe49e9 /contrib/entResolver | |
parent | caa08b6106748fa290447d8183adbe6094eed07d (diff) |
* Merged newxml into HEAD
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3434 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'contrib/entResolver')
-rw-r--r-- | contrib/entResolver | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/contrib/entResolver b/contrib/entResolver new file mode 100644 index 000000000..e04f439b3 --- /dev/null +++ b/contrib/entResolver @@ -0,0 +1,29 @@ +#!/bin/bash +############################################################################### +# # +# File: entResolver # +# # +# Description: Works around libxml2 bug 135713 by preprocessing entity # +# references before performing any stylesheet processing. # +# # +# Author: Manuel Canales Esparcia # +# # +############################################################################### + +NAME=`basename "$0"` +DESTDIR="$1" + +if [ -z "$1" ]; then + echo "USAGE: $NAME destdir" + exit +fi + +mkdir -p ../"$DESTDIR"/chapter0{1,2,3,4,5,6,7,8,9} +mkdir -p ../"$DESTDIR"/prologue +mkdir -p ../"$DESTDIR"/appendix{a,b} + +for i in `find . -name "*.xml"`; do + xmllint --nonet --noent "${i}" > ../"$DESTDIR"/"${i}"; +done + +cp -a stylesheets ../"$DESTDIR" |