Changeset 1818
- Timestamp:
- 09/18/06 00:24:19 (2 years ago)
- Files:
-
- trunk/swish_website/Plugin/My/POD.pm (modified) (1 diff)
- trunk/swish_website/bin/build (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/swish_website/Plugin/My/POD.pm
r1698 r1818 260 260 261 261 sub validate_links { 262 my $all_files_processed = $My::POD::stash->get( 'self.config.all'); 262 # Maybe this was some hack to get at the config?? 263 #my $all_files_processed = $My::POD::stash->get( 'self.config.all'); 264 my $config = shift; 265 my $all_files_processed = $config->{all}; 266 263 267 264 268 for my $link ( @links ) { 265 269 my ($name, $fragment) = split /#/, $link->{href}, 2; 270 266 271 267 272 # If processing all files then can check for page links trunk/swish_website/bin/build
r1817 r1818 10 10 # 11 11 # Script to build the swish-e web site and pod docs. Based on 12 # script written by Peter Karman. Peter made it look to simple, so12 # script written by Peter Karman. Peter made it look too simple, so 13 13 # I rewrote it to make it much more complex. 14 14 # … … 21 21 # 22 22 # Questions/TODO 23 # Should utime the output files to match timestamp of input 23 # Should utime the output files to match timestamp of input? 24 24 # Might be useful is reading from cvs or where someone's machine 25 25 # might be off in time … … 261 261 unshift @INC, $plugin_dir; 262 262 263 require My::POD; 264 263 265 264 266 # Build include paths - reverse so -includ=foo will be pre-pended to path … … 274 276 275 277 my $dest = File::Spec->rel2abs( $config->dest ); 278 279 mkdir $dest unless -e $dest; 280 276 281 die "destination directory [$dest] does not exist\n" unless -e $dest; 277 282 die "destination directory [$dest] is not a directory\n" unless -d $dest; … … 486 491 shift @$include_path; # remove source dir. 487 492 488 return; # Not sure what happended below to make this not work on sunsite489 493 490 494 # Check all the L<> links 491 My::Pod::View::HTML::validate_links( )495 My::Pod::View::HTML::validate_links($config) 492 496 if $update_index; # and $config->verbose; 493 497 }
