Changeset 36199

Show
Ignore:
Timestamp:
12/19/09 05:02:48 (3 years ago)
Author:
ktat
Message:

fix bug: date and time is not embeded. if version is same, embed version information.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/POD2-JA/Makefile.PL

    r36198 r36199  
    11use strict; 
    22use version; 
     3 
     4our $DATE_TIME = scalar localtime; 
    35 
    46main() unless $ENV{HARNESS_ACTIVE}; 
     
    8183use Encode::Guess; 
    8284 
    83 my $date_time = scalar localtime; 
    84  
    8585sub find_core_version { 
    8686  remove_tree('lib/POD2/JA/*') if -d "lib/POD2/JA"; 
     
    111111  my $pod = slurp_file($s); 
    112112 
    113   if (defined $version and $version->[0] ne $version->[1]) { 
    114     $pod = sprintf(<<__VERSION, $date_time, $version->[0], $version->[1]) . $pod; 
     113  if (defined $version) { 
     114    $pod = sprintf(<<__VERSION, $main::DATE_TIME, $version->[0], $version->[1]) . $pod; 
    115115=head1 ABOUT TRANSLATION VERSION 
    116116