2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

leave <?xml at start file

This commit is contained in:
Mark Andrews
2007-01-05 04:28:12 +00:00
parent 39918cc3cb
commit 3d17258ff6

View File

@@ -15,7 +15,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE. # PERFORMANCE OF THIS SOFTWARE.
# $Id: update_copyrights,v 1.45 2006/12/22 02:40:14 sra Exp $ # $Id: update_copyrights,v 1.46 2007/01/05 04:28:12 marka Exp $
require 5.002; require 5.002;
@@ -246,10 +246,13 @@ foreach $file (keys %file_types) {
} }
} elsif ($sgml_comment) { } elsif ($sgml_comment) {
$before_copyright = ""; $before_copyright = "";
while (/^<!DOCTYPE/ || /^<\?xml-stylesheet/) { while (/^<!DOCTYPE/ || /^<\?xml-stylesheet/ || /^<\?xml /) {
$before_copyright = "$before_copyright$_"; $before_copyright = "$before_copyright$_";
$_ = <SOURCE>; if (/\?>$/) {
; $_ = <SOURCE>;
close(SOURCE) if (eof(SOURCE));
next;
}
while (!eof(SOURCE) && ! /^<!/ ) { while (!eof(SOURCE) && ! /^<!/ ) {
$before_copyright = "$before_copyright$_"; $before_copyright = "$before_copyright$_";
$_ = <SOURCE>; $_ = <SOURCE>;