Changeset 16840 for lang

Show
Ignore:
Timestamp:
07/30/08 11:18:11 (5 years ago)
Author:
daisuke
Message:

warn if you have an old version

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Google-Chart/trunk/Makefile.PL

    r16838 r16840  
    11use strict; 
    22use inc::Module::Install; 
     3 
     4my $have_previous = eval { 
     5    require Google::Chart; 
     6    $Google::Chart::VERSION < 0.05000; 
     7}; 
     8 
     9if ($have_previous) { 
     10    my $y_n = prompt(<<EOM, "n"); 
     11 
     12You seem to have an old version of Google::Chart installed. 
     13As this version of Google::Chart breaks a lot of backwards compatibility, 
     14installing this *WILL* break your code if you have something that depends on it. 
     15 
     16Are you sure you want to continue? [y/N] 
     17EOM 
     18    if ($y_n !~ /^y(?:es)$/i) { 
     19        exit 0; 
     20    } 
     21} 
    322 
    423name 'Google-Chart';