summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorFrans Pop <elendil@planet.nl>2010-02-07 14:15:44 +0000
committerFrans Pop <elendil@planet.nl>2010-02-07 14:15:44 +0000
commit99eb9ed032865bf80426dceee0b31b29e77ea2c1 (patch)
tree30ad6c959daf511021e70b8cacf30e5991365a55 /build
parent84775b3966b35de1e717d0b926520d05b52e8a9c (diff)
downloadinstallation-guide-99eb9ed032865bf80426dceee0b31b29e77ea2c1.zip
preseed.pl: support &lt; and &gt; entities
Diffstat (limited to 'build')
-rwxr-xr-xbuild/preseed.pl7
1 files changed, 5 insertions, 2 deletions
diff --git a/build/preseed.pl b/build/preseed.pl
index 805a57667..d4ef6810b 100755
--- a/build/preseed.pl
+++ b/build/preseed.pl
@@ -67,8 +67,11 @@ $p->parse_file($xmlfile);
sub replace_entities {
my $text = shift;
- $text =~ s/&archive-mirror;/http.us.debian.org/;
- $text =~ s/&releasename;/$release/;
+ $text =~ s/&archive-mirror;/http.us.debian.org/g;
+ $text =~ s/&releasename;/$release/g;
+ $text =~ s/&gt;/>/g;
+ $text =~ s/&lt;/</g;
+
# Any unrecognized entities?
if ( $text =~ /(&[^ ]+;)/ ) {