source: contrib/entResolver@ cbd483e

6.0
Last change on this file since cbd483e was 287ea55, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Merged newxml into HEAD

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3434 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 1.2 KB
Line 
1#!/bin/bash
2###############################################################################
3# #
4# File: entResolver #
5# #
6# Description: Works around libxml2 bug 135713 by preprocessing entity #
7# references before performing any stylesheet processing. #
8# #
9# Author: Manuel Canales Esparcia #
10# #
11###############################################################################
12
13NAME=`basename "$0"`
14DESTDIR="$1"
15
16if [ -z "$1" ]; then
17 echo "USAGE: $NAME destdir"
18 exit
19fi
20
21mkdir -p ../"$DESTDIR"/chapter0{1,2,3,4,5,6,7,8,9}
22mkdir -p ../"$DESTDIR"/prologue
23mkdir -p ../"$DESTDIR"/appendix{a,b}
24
25for i in `find . -name "*.xml"`; do
26 xmllint --nonet --noent "${i}" > ../"$DESTDIR"/"${i}";
27done
28
29cp -a stylesheets ../"$DESTDIR"
Note: See TracBrowser for help on using the repository browser.