File: convcss.pl

package info (click to toggle)
josm 0.0.svn18646%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 216,968 kB
  • sloc: java: 389,442; xml: 199,920; perl: 10,155; jsp: 265; sh: 182; makefile: 114; javascript: 74; python: 29
file content (14 lines) | stat: -rw-r--r-- 302 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /usr/bin/perl -w

# Written by Dirk Stöcker <openstreetmap@dstoecker.de>
# Public domain, no rights reserved.

use strict;

my $skipmore = 0;
while(my $line = <>)
{
  $skipmore = 1 if $line =~ /meta\[lang/;
  $line =~ s/((?:title|description): +)(.*)(;)/$1tr($2)$3/ if !$skipmore;
  print $line;
}