File: convcss.pl

package info (click to toggle)
josm 0.0.svn11427%2Bdfsg-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 113,412 kB
  • sloc: java: 261,148; xml: 113,421; perl: 9,724; jsp: 250; sh: 103; makefile: 94
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;
}