git://git.jankratochvil.net
/
www.jankratochvil.net.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modperl bootstrap
[www.jankratochvil.net.git]
/
project
/
fixhtml
/
Index.html.pl
diff --git
a/project/fixhtml/index.html.pl
b/project/fixhtml/Index.html.pl
similarity index 72%
rename from
project/fixhtml/index.html.pl
rename to
project/fixhtml/Index.html.pl
index
4524e36
..
378df03
100755
(executable)
--- a/
project/fixhtml/index.html.pl
+++ b/
project/fixhtml/Index.html.pl
@@
-18,19
+18,22
@@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+package project::fixhtml::Index;
require 5.6.0; # at least 'use warnings;' but we need some 5.6.0+ modules anyway
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;
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 My::Web;
+use My::Project;
use project::fixhtml::ListItem;
use project::fixhtml::ListItem;
-My::Web->init_project(
- "ListItem"=>\%My::Project::fixhtml::ListItem,
+My::Project->init_project(
+ "__PACKAGE__"=>__PACKAGE__,
+ "ListItem"=>\@project::fixhtml::ListItem::ListItem,
);
My::Web->footer();
);
My::Web->footer();