mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-15 16:48:09 -05:00
handle copyright less xml
This commit is contained in:
parent
8267819c42
commit
ef443ff786
1 changed files with 7 additions and 2 deletions
|
|
@ -15,7 +15,7 @@
|
|||
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
# PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
# $Id: update_copyrights,v 1.32.18.8 2005/05/15 23:52:25 marka Exp $
|
||||
# $Id: update_copyrights,v 1.32.18.9 2005/09/06 01:59:47 marka Exp $
|
||||
|
||||
require 5.002;
|
||||
|
||||
|
|
@ -244,10 +244,15 @@ foreach $file (keys %file_types) {
|
|||
if (/^<!DOCTYPE/) {
|
||||
$before_copyright = $_;
|
||||
$_ = <SOURCE>;
|
||||
while (! /^<!/ ) {
|
||||
;
|
||||
while (!eof(SOURCE) && ! /^<!/ ) {
|
||||
$before_copyright = "$before_copyright$_";
|
||||
$_ = <SOURCE>;
|
||||
}
|
||||
if (eof(SOURCE)) {
|
||||
close(SOURCE);
|
||||
next;
|
||||
}
|
||||
}
|
||||
if (/^<!/) {
|
||||
$_ = <SOURCE> if $_ eq "<!--\n";
|
||||
|
|
|
|||
Loading…
Reference in a new issue