#!/usr/bin/env perl # # Albert Danial Mar 21 2002 # # Creates .html files documenting all the functions in octave and # octave-forge. use strict; use File::Find; use File::Basename; use Text::Wrap; use FileHandle; use IPC::Open3; use POSIX ":sys_wait_h"; ## Local configuration; the OCTAVE directory should contain # src/DOCSTRINGS (which is a build product) and scripts/. my $OCTAVE = "../octave"; my $tmpdir = "/tmp"; # temp directory my $catdir = "index"; # output directory ## Commands to grab the last few defs from octave ## Use the first def if you want to extract from ## a locally compiled version, or the second if you ## want to use the installed version. #my $OCTAVECMD = "LD_LIBRARY_PATH=$OCTAVE/src/:$OCTAVE/liboctave:$OCTAVE/libcruft $OCTAVE/src/octave -q"; #my $OCTAVEINIT = "path='.:$OCTAVE/src//:$OCTAVE/scripts//'; suppress_verbose_help_message = 1;"; my $OCTAVECMD = "octave -q"; my $OCTAVEINIT = "suppress_verbose_help_message = 1;"; # Links to octave/octave-forge web CVS my $OCTAVECVS = "http://www.octave.org/cgi-bin/viewcvs.cgi/~checkout~/octave"; my $FORGECVS = "http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/octave/octave-forge/"; #my $script = basename($0); my $forgebar = qq~
| $func\n"; # The toolboxes to which it belongs foreach my $pair ( @{$index_by_function{$func}} ) { my ( $TB, $cat ) = @{$pair}; print FUNC " ", cat_ref_up($TB, $cat, "[$TB]"), "\n"; } print FUNC " | ", download_ref($func), " |