#!/usr/bin/perl # # Program to fixup RSI-scanned HTML to contain the previous and next # links (in two location, top and bottom), plus some other useful # links. # # (c)2003 J.D. Smith # # Version Supporting: IDLv5.6 # # Verify that the listing files funclisting.html, nav_procedures.html, # nav_functions.html, nav_objects.html all exist, or modify below as # necessary. # # Usage: addlinks.pl (in directory containing IDL .html files) # opendir DIR,"." or die "Can't open current directory\n"; my @files=grep {-f && /\.html$/} readdir(DIR); close DIR; die "No HTML files found.\n" unless @files; undef $/; my $others= '
'. 'Categories | '. 'Procedures | '. 'Functions | '. 'Classes | '. 'All Contents | '; foreach $file (@files) { open FILE, "<$file" or do {warn "Can't open $file... skipping"; next}; $_=; close FILE; if (s@