mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-04 08:35:31 +00:00
2351. [bug] convertxsl.pl generated very long lines. [RT #17906]
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -1,3 +1,5 @@
|
|||||||
|
2351. [bug] convertxsl.pl generated very long lines. [RT #17906]
|
||||||
|
|
||||||
2350. [port] win32: IPv6 support. [RT #17797]
|
2350. [port] win32: IPv6 support. [RT #17797]
|
||||||
|
|
||||||
2349. [func] Provide incremental re-signing support for secure
|
2349. [func] Provide incremental re-signing support for secure
|
||||||
|
@@ -14,12 +14,12 @@
|
|||||||
# 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: convertxsl.pl,v 1.9 2007/09/14 06:14:44 marka Exp $
|
# $Id: convertxsl.pl,v 1.10 2008/04/02 03:35:13 marka Exp $
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
my $rev = '$Id: convertxsl.pl,v 1.9 2007/09/14 06:14:44 marka Exp $';
|
my $rev = '$Id: convertxsl.pl,v 1.10 2008/04/02 03:35:13 marka Exp $';
|
||||||
$rev =~ s/\$//g;
|
$rev =~ s/\$//g;
|
||||||
$rev =~ s/,v//g;
|
$rev =~ s/,v//g;
|
||||||
$rev =~ s/Id: //;
|
$rev =~ s/Id: //;
|
||||||
@@ -34,7 +34,16 @@ while (<>) {
|
|||||||
$xsl = $_ if (/<!-- .Id:.* -->/);
|
$xsl = $_ if (/<!-- .Id:.* -->/);
|
||||||
# convert Id string to a form not recognisable by cvs.
|
# convert Id string to a form not recognisable by cvs.
|
||||||
$_ =~ s/<!-- .Id:(.*). -->/<!-- \\045Id: $1\\045 -->/;
|
$_ =~ s/<!-- .Id:(.*). -->/<!-- \\045Id: $1\\045 -->/;
|
||||||
$lines .= $_;
|
s/[\ \t]+/ /g;
|
||||||
|
s/\>\ \</\>\</g;
|
||||||
|
s/\"/\\\"/g;
|
||||||
|
s/^/\t\"/;
|
||||||
|
s/$/\\n\"/;
|
||||||
|
if ($lines eq "") {
|
||||||
|
$lines .= $_;
|
||||||
|
} else {
|
||||||
|
$lines .= "\n" . $_;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$xsl =~ s/\$//g;
|
$xsl =~ s/\$//g;
|
||||||
@@ -42,12 +51,8 @@ $xsl =~ s/<!-- Id: //;
|
|||||||
$xsl =~ s/ -->.*//;
|
$xsl =~ s/ -->.*//;
|
||||||
$xsl =~ s/,v//;
|
$xsl =~ s/,v//;
|
||||||
|
|
||||||
$lines =~ s/[\ \t]+/ /g;
|
|
||||||
$lines =~ s/\>\ \</\>\</g;
|
|
||||||
$lines =~ s/\"/\\\"/g;
|
|
||||||
|
|
||||||
print "/*\n * Generated by $rev \n * From $xsl\n */\n";
|
print "/*\n * Generated by $rev \n * From $xsl\n */\n";
|
||||||
print 'static char msg[] = "';
|
print 'static char msg[] =',"\n";
|
||||||
print $lines;
|
print $lines;
|
||||||
|
|
||||||
print '\\n";', "\n";
|
print ';', "\n";
|
||||||
|
Reference in New Issue
Block a user