~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/layout/svg/base/src/install-svg-css.pl

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# script to add svg.css to the ua.css
 
2
# blatently stolen from the mathml code
 
3
#
 
4
 
 
5
$sep = '/'; # directory separator
 
6
 
 
7
$ua = $ARGV[0]; $ua =~ s|\\|$sep|g;
 
8
 
 
9
open(UA, $ua) || die "Cannot find ua.css\n";
 
10
$css = join("", <UA>);
 
11
close(UA);
 
12
 
 
13
if (!($css =~ m|\@import.*svg\.css|)) 
 
14
{
 
15
  $css =~ s/\cM\n/\n/g; # dos2unix end of line
 
16
  $css =~ s|(\@import[^\@]+\;)\n\n|$1\n\@import url\(resource:/res/svg\.css\);\n\n|;
 
17
  open(UA, ">$ua");
 
18
  print UA $css;
 
19
  close(UA);
 
20
}