From fadb0a1110db3d90433f162ce80b1fca4f3fcaf6 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Wed, 11 Jul 2012 11:29:15 +0200 Subject: [PATCH] s/GrottyParser/ManUtils/g --- Makefile | 14 +++++++------- lib/GrottyParser/Build.PL | 15 --------------- lib/ManUtils/Build.PL | 15 +++++++++++++++ .../GrottyParser.pm => ManUtils/ManUtils.pm} | 4 ++-- .../GrottyParser.xs => ManUtils/ManUtils.xs} | 2 +- www/index.pl | 6 +++--- 6 files changed, 28 insertions(+), 28 deletions(-) delete mode 100644 lib/GrottyParser/Build.PL create mode 100644 lib/ManUtils/Build.PL rename lib/{GrottyParser/GrottyParser.pm => ManUtils/ManUtils.pm} (53%) rename lib/{GrottyParser/GrottyParser.xs => ManUtils/ManUtils.xs} (99%) diff --git a/Makefile b/Makefile index 42a617a..25e4714 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,12 @@ -.PHONY: GrottyParser +.PHONY: ManUtils -GrottyParser: lib/GrottyParser/Build - cd lib/GrottyParser && ./Build install --install-base=inst +ManUtils: lib/ManUtils/Build + cd lib/ManUtils && ./Build install --install-base=inst -lib/GrottyParser/Build: lib/GrottyParser/Build.PL - cd lib/GrottyParser && perl Build.PL +lib/ManUtils/Build: lib/ManUtils/Build.PL + cd lib/ManUtils && perl Build.PL clean: - cd lib/GrottyParser && ./Build distclean - rm -rf lib/GrottyParser/inst + cd lib/ManUtils && ./Build distclean + rm -rf lib/ManUtils/inst diff --git a/lib/GrottyParser/Build.PL b/lib/GrottyParser/Build.PL deleted file mode 100644 index 18705ce..0000000 --- a/lib/GrottyParser/Build.PL +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/perl - -use Module::Build; - -Module::Build->new( - dist_name => 'GrottyParser', - dist_version_from => 'GrottyParser.pm', - pm_files => { - 'GrottyParser.pm' => 'lib/GrottyParser.pm', - }, - xs_files => { - 'GrottyParser.xs' => 'lib/GrottyParser.xs', - }, -)->create_build_script; - diff --git a/lib/ManUtils/Build.PL b/lib/ManUtils/Build.PL new file mode 100644 index 0000000..5d4abfe --- /dev/null +++ b/lib/ManUtils/Build.PL @@ -0,0 +1,15 @@ +#!/usr/bin/perl + +use Module::Build; + +Module::Build->new( + dist_name => 'ManUtils', + dist_version_from => 'ManUtils.pm', + pm_files => { + 'ManUtils.pm' => 'lib/ManUtils.pm', + }, + xs_files => { + 'ManUtils.xs' => 'lib/ManUtils.xs', + }, +)->create_build_script; + diff --git a/lib/GrottyParser/GrottyParser.pm b/lib/ManUtils/ManUtils.pm similarity index 53% rename from lib/GrottyParser/GrottyParser.pm rename to lib/ManUtils/ManUtils.pm index 458242c..793747f 100644 --- a/lib/GrottyParser/GrottyParser.pm +++ b/lib/ManUtils/ManUtils.pm @@ -1,4 +1,4 @@ -package GrottyParser; +package ManUtils; use strict; use warnings; @@ -6,7 +6,7 @@ use warnings; our $VERSION = '0.01'; require XSLoader; -XSLoader::load('GrottyParser', $VERSION); +XSLoader::load('ManUtils', $VERSION); 1; diff --git a/lib/GrottyParser/GrottyParser.xs b/lib/ManUtils/ManUtils.xs similarity index 99% rename from lib/GrottyParser/GrottyParser.xs rename to lib/ManUtils/ManUtils.xs index 99c4a03..834c9fe 100644 --- a/lib/GrottyParser/GrottyParser.xs +++ b/lib/ManUtils/ManUtils.xs @@ -257,7 +257,7 @@ static void parselines(ctx_t *x) { -MODULE = GrottyParser PACKAGE = GrottyParser +MODULE = ManUtils PACKAGE = ManUtils SV * html(str) diff --git a/www/index.pl b/www/index.pl index 33cb5c4..3f1ff37 100755 --- a/www/index.pl +++ b/www/index.pl @@ -14,8 +14,8 @@ our $ROOT; BEGIN { ($ROOT = abs_path $0) =~ s{/www/index\.pl$}{}; } -use lib "$ROOT/lib/GrottyParser/inst/lib/perl5"; -use GrottyParser; +use lib "$ROOT/lib/ManUtils/inst/lib/perl5"; +use ManUtils; TUWF::set( @@ -486,7 +486,7 @@ sub man { div id => 'contents'; my $c = $self->dbManContent($man->{hash}); - pre; lit GrottyParser::html(manfmt $c); end; + pre; lit ManUtils::html(manfmt $c); end; end; div id => 'locations';