mirror of https://github.com/tLDP/LDP
Catch recode problem
This commit is contained in:
parent
9017b6d809
commit
4105cb4fa3
|
@ -14,6 +14,7 @@
|
||||||
# add support for XML file, replace nsgmls by onsgmls
|
# add support for XML file, replace nsgmls by onsgmls
|
||||||
# 20090214/PB: remove </?dummy> tag from SGML, onsgmls don't like it
|
# 20090214/PB: remove </?dummy> tag from SGML, onsgmls don't like it
|
||||||
# 20090523/PB: extend required binary check
|
# 20090523/PB: extend required binary check
|
||||||
|
# 20091220/PB: catch recode problem
|
||||||
|
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
|
@ -116,7 +117,7 @@ validate_sgml() {
|
||||||
if [ "$doctype" = "SGML" ]; then
|
if [ "$doctype" = "SGML" ]; then
|
||||||
if [ ! -f "$file_input.recoded" -o "$file_input" -nt "$file_input.recoded" ]; then
|
if [ ! -f "$file_input.recoded" -o "$file_input" -nt "$file_input.recoded" ]; then
|
||||||
echo "INF: Recode SGML from UTF-8 to ISO8859-1 '$file_input'"
|
echo "INF: Recode SGML from UTF-8 to ISO8859-1 '$file_input'"
|
||||||
$RECODE UTF-8..ISO8859-1 "$file_input"
|
$RECODE UTF-8..ISO8859-1 "$file_input" || return 1
|
||||||
touch "$file_input.recoded"
|
touch "$file_input.recoded"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue