2000-07-10 17:58:27 +04:00
|
|
|
# add mathml.css to the ua.css
|
|
|
|
|
|
|
|
$sep = '/'; # directory separator
|
|
|
|
|
|
|
|
$ua = $ARGV[0]; $ua =~ s|\\|$sep|g;
|
|
|
|
|
|
|
|
open(UA, $ua) || die "Cannot find ua.css\n";
|
|
|
|
$css = join("", <UA>);
|
|
|
|
close(UA);
|
|
|
|
|
|
|
|
if (!($css =~ m|\@import.*mathml\.css|))
|
|
|
|
{
|
2002-02-08 06:34:57 +03:00
|
|
|
# since bad end of lines cause troubles on some platforms
|
|
|
|
# do a little perl magic for dos2{unix or mac} here
|
2009-10-12 23:31:50 +04:00
|
|
|
$css =~ s#(\@import[^\@]+\;)(\cM?)(\n\cM?\n)#$1$2\n\@import url\(resource://gre-resources/mathml\.css\);$2$3#;
|
2000-10-08 13:05:56 +04:00
|
|
|
open(UA, ">$ua");
|
|
|
|
print UA $css;
|
2000-07-10 17:58:27 +04:00
|
|
|
close(UA);
|
|
|
|
}
|
2000-10-08 13:07:36 +04:00
|
|
|
|