mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
add sgml support
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
|
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
|
||||||
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
# $Id: update_copyrights,v 1.22 2001/01/09 22:01:04 bwelling Exp $
|
# $Id: update_copyrights,v 1.23 2001/03/27 17:57:28 halley Exp $
|
||||||
|
|
||||||
require 5.002;
|
require 5.002;
|
||||||
|
|
||||||
@@ -68,7 +68,7 @@ while (<>) {
|
|||||||
$c_comment = 0;
|
$c_comment = 0;
|
||||||
$shell_comment = 0;
|
$shell_comment = 0;
|
||||||
$m4_comment = 0;
|
$m4_comment = 0;
|
||||||
$html_comment = 0;
|
$sgml_comment = 0;
|
||||||
$zone_comment = 0;
|
$zone_comment = 0;
|
||||||
$man_comment = 0;
|
$man_comment = 0;
|
||||||
$start_comment = "";
|
$start_comment = "";
|
||||||
@@ -91,8 +91,8 @@ while (<>) {
|
|||||||
} elsif ($type eq "M4") {
|
} elsif ($type eq "M4") {
|
||||||
$m4_comment = 1;
|
$m4_comment = 1;
|
||||||
$prefix = "dnl ";
|
$prefix = "dnl ";
|
||||||
} elsif ($type eq "HTML") {
|
} elsif ($type eq "HTML" || $type eq "SGML") {
|
||||||
$html_comment = 1;
|
$sgml_comment = 1;
|
||||||
$start_comment = "<!--\n";
|
$start_comment = "<!--\n";
|
||||||
$prefix = " - ";
|
$prefix = " - ";
|
||||||
$end_comment = "-->\n";
|
$end_comment = "-->\n";
|
||||||
@@ -168,7 +168,7 @@ while (<>) {
|
|||||||
last;
|
last;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} elsif ($html_comment) {
|
} elsif ($sgml_comment) {
|
||||||
if (/^<!DOCTYPE/) {
|
if (/^<!DOCTYPE/) {
|
||||||
$before_copyright = $_;
|
$before_copyright = $_;
|
||||||
$_ = <SOURCE>;
|
$_ = <SOURCE>;
|
||||||
|
Reference in New Issue
Block a user