modperl branch collapsed back to MAIN trunk, man!
[www.jankratochvil.net.git] / project / pipebuf / Index.html.pl
similarity index 56%
rename from project/pipebuf/index.html.pl
rename to project/pipebuf/Index.html.pl
index c06b103..e3850af 100755 (executable)
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 
+package project::pipebuf::Index;
 require 5.6.0; # at least 'use warnings;' but we need some 5.6.0+ modules anyway
-use vars qw($VERSION $CVS_ID);
-$VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; };
-$CVS_ID=q$Id$;
+our $VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; };
+our $CVS_ID=q$Id$;
 use strict;
 use warnings;
 
+BEGIN{ open F,"Makefile"; our $top_dir=pop @{[split /\s/,(grep /^top_srcdir/,<F>)[0]]}; eval "use lib '$top_dir'"; close F; }
 use My::Web;
-use project::pipebuf::ListItem;
+Wuse 'My::Project';
+Wuse 'project::pipebuf::ListItem';
 
 
-My::Web->init_project(
-               "ListItem"=>\%My::Project::pipebuf::ListItem,
+My::Project->init_project(
+               "__PACKAGE__"=>__PACKAGE__,
+               "ListItem"=>\@project::pipebuf::ListItem::ListItem,
                );
 
+
+print <<"HERE";
+<p>Progarm is implemented as two processes (no threads - no pthread libraries
+needed, only IPC communication used). Features custom buffer sizes, prefill
+(start writing of the first byte only after the WHOLE buffer has beel filled
+up) and warning messages when buffer is getting emptied.</p>
+HERE
+
+
 My::Web->footer();