Changeset 7501


Ignore:
Timestamp:
08/23/09 23:50:25 (2 years ago)
Author:
azawawi
Message:

[tools] update_perlopref.pl downloads latest perlopref.pod (Perl Operator references)
[tools] and copies it to its proper place in Padre

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/update_perlopref.pl

    r7495 r7501  
    1313} 
    1414 
    15 print $res->content; 
     15require File::Spec; 
     16my $file = File::Spec->catfile('lib', 'Padre', 'HelpProvider', 'perlopref.pod'); 
     17if(-f $file) { 
     18    print "Replacing perlopref.pod...\n"; 
     19    open FILE, '>', $file or die "Could not open $file for writing\n"; 
     20    print FILE $res->content; 
     21    close FILE; 
     22} else { 
     23    print "Could not find $file\n"; 
     24} 
    1625 
    1726__END__ 
     
    1928=head1 NAME 
    2029 
    21 update_perlopref.pl - A script to download the latest copy of perlopref.pod from github 
     30update_perlopref.pl - update perlopref.pod from github 
    2231 
    2332=head1 DESCRIPTION 
    2433 
    25 This is a simple script to load perlopref.pod from github and write it in its  
    26 proper Padre folder 
     34FYI, perlopref is Perl Operator Reference. 
     35 
     36This is a simple script to obtain the latest perlopref.pod  
     37from github and write it in its proper Padre folder 
    2738 
    2839=head1 AUTHOR 
Note: See TracChangeset for help on using the changeset viewer.