Changeset 5335
- Timestamp:
- 06/18/09 14:24:54 (3 years ago)
- Location:
- trunk/Padre-Plugin-SpellCheck
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre-Plugin-SpellCheck/Build.PL
r4755 r5335 13 13 use Module::Build; 14 14 15 my $class = Module::Build->subclass( 16 class => "Module::Build::Custom", 17 code => <<'SUBCLASS' ); 18 19 sub ACTION_build { 20 my $self = shift; 21 22 my $msgfmt = $^O =~ /(linux|bsd)/ 23 ? `which msgfmt` 24 : "c:/Program Files/GnuWin32/bin/msgfmt.exe"; 25 chomp $msgfmt; 26 if ( $msgfmt && -e $msgfmt ) { 27 my @pofiles = glob "lib/Padre/Plugin/SpellCheck/share/locale/*.po"; 28 foreach my $pof ( @pofiles ) { 29 my $mof = $pof; 30 $mof =~ s/\.po$/.mo/; 31 $self->do_system( "$msgfmt -o $mof $pof" ); 32 } 33 } 34 $self->SUPER::ACTION_build; 35 } 36 37 SUBCLASS 38 39 40 my $builder = $class->new( 15 my $builder = Module::Build->new( 41 16 module_name => 'Padre::Plugin::SpellCheck', 42 17 license => 'perl',
Note: See TracChangeset
for help on using the changeset viewer.
