X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=project%2Fwinvnc%2FIndex.html.pl;fp=project%2Fwinvnc%2Findex.html.pl;h=027f6f05e277e41738176780b41b92a43b8fb02b;hb=b4ddfba5b53a40e47285f8851e1ff7bb5419909b;hp=fa5b3ffe01dddcc8054f5a5b76b988155c7755b1;hpb=d33b43a5557132098003a232b6c209abd3e4d135;p=www.jankratochvil.net.git diff --git a/project/winvnc/index.html.pl b/project/winvnc/Index.html.pl similarity index 85% rename from project/winvnc/index.html.pl rename to project/winvnc/Index.html.pl index fa5b3ff..027f6f0 100755 --- a/project/winvnc/index.html.pl +++ b/project/winvnc/Index.html.pl @@ -18,19 +18,22 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +package project::winvnc::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/,)[0]]}; eval "use lib '$top_dir'"; close F; } use My::Web; -use project::winvnc::ListItem; +Wuse 'My::Project'; +Wuse 'project::winvnc::ListItem'; -My::Web->init_project( - "ListItem"=>\%My::Project::winvnc::ListItem, +My::Project->init_project( + "__PACKAGE__"=>__PACKAGE__, + "ListItem"=>\@project::winvnc::ListItem::ListItem, ); print <<'HERE';