~ubuntu-branches/ubuntu/utopic/softcatala-spell/utopic

« back to all changes in this revision

Viewing changes to debian/strip_mwl

  • Committer: Package Import Robot
  • Author(s): Agustin Martin Domingo
  • Date: 2012-06-28 19:16:59 UTC
  • Revision ID: package-import@ubuntu.com-20120628191659-dznni3hr5rvqryf8
Tags: 0.20111230b-4
And back again to softcatala-spell name now that original package with
this source name has been accepted into unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/perl -w
 
2
 
 
3
$inputfile="catalan-i.dic";
 
4
$ignore="CDVWYZ";
 
5
 
 
6
open (INPUTFILE,"< $inputfile") || die "Could not open inputfile: $inputfile";
 
7
 
 
8
while (<INPUTFILE>){
 
9
    chomp;
 
10
    ($root,$flags)=split('/');
 
11
    if ( $flags ){
 
12
        $flags=~s/[$ignore]*//g;
 
13
    }
 
14
    if ( $flags ){
 
15
        print "$root/$flags\n";
 
16
    } else {
 
17
        print "$root\n";
 
18
    }
 
19
}
 
20
 
 
21
close INPUTFILE;