X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=project%2Ftac_plus%2FIndex.html.pl;fp=project%2Ftac_plus%2Findex.html.pl;h=9542b9231d1f0299898dc2a009971e469fd262e5;hb=87881612a38624ab579efed6e93749b0e2b42fc7;hp=d0b0ff225c81933b372b375f1949d63148f6f590;hpb=d33b43a5557132098003a232b6c209abd3e4d135;p=www.jankratochvil.net.git diff --git a/project/tac_plus/index.html.pl b/project/tac_plus/Index.html.pl similarity index 83% rename from project/tac_plus/index.html.pl rename to project/tac_plus/Index.html.pl index d0b0ff2..9542b92 100755 --- a/project/tac_plus/index.html.pl +++ b/project/tac_plus/Index.html.pl @@ -18,19 +18,22 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +package project::tac_plus::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 My::Project; use project::tac_plus::ListItem; -My::Web->init_project( - "ListItem"=>\%My::Project::tac_plus::ListItem, +My::Project->init_project( + "__PACKAGE__"=>__PACKAGE__, + "ListItem"=>\@project::tac_plus::ListItem::ListItem, ); print <<'HERE';