Changeset 11986


Ignore:
Timestamp:
07/24/10 20:25:51 (19 months ago)
Author:
azawawi
Message:

Write wxwidgets.pod to ../Padre/share/doc/wxwidgets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/parse_wxwidgets_docs.pl

    r11985 r11986  
    1313use HTML::FormatText (); 
    1414 
     15my $pod_dir = File::Spec->join( '..', 'Padre', 'share', 'doc', 'wxwidgets' ); 
     16unless ( -d $pod_dir ) { 
     17    die "Abort! I could not find ../Padre/share/doc/wxwidgets in the current directory\n"; 
     18} 
     19 
    1520my $WX_WIGDETS_HTML_ZIP = 'wxWidgets-2.8.10-HTML.zip'; 
    1621 
     
    2833 
    2934# Step 4: Write the final POD while processing all html files 
    30 write_pod( $wx_dir, @wxclasses ); 
     35write_pod( $pod_dir, $wx_dir, @wxclasses ); 
    3136 
    3237# and we're done 
     
    166171# 
    167172sub write_pod { 
    168     my ( $wx_dir, @wxclasses ) = @_; 
    169     my $pod_file = 'wxwidgets.pod'; 
     173    my ( $pod_dir, $wx_dir, @wxclasses ) = @_; 
     174    my $pod_file = File::Spec->join( $pod_dir, 'wxwidgets.pod' ); 
    170175    print "Writing $pod_file\n"; 
    171     if ( open( my $pod, '>', 'wxwidgets.pod' ) ) { 
     176    if ( open( my $pod, '>', $pod_file ) ) { 
    172177        my $oldclass; 
    173178        foreach my $wxclass (@wxclasses) { 
Note: See TracChangeset for help on using the changeset viewer.