From 5c421f8b61f689bf69cf172b3a678949debdcd8f Mon Sep 17 00:00:00 2001 From: Xavier Guimard Date: Tue, 7 Feb 2017 14:46:28 +0000 Subject: [PATCH] Spelling parser --- Makefile | 13 +++++++++++++ lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf.pm | 2 +- .../lib/Lemonldap/NG/Manager/Build.pm | 2 +- lemonldap-ng-portal/lib/Lemonldap/NG/Portal.pm | 4 ++-- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index ea361ca40..c652f05db 100644 --- a/Makefile +++ b/Makefile @@ -1077,3 +1077,16 @@ install_%_doc_site: rm -rvf $(DOCLIBSTOREMOVEFORDEBIAN); \ fi && cd - +html_spelling: + @for i in $$(find doc/ -type f -name '*.html'); do \ + text=$$(html2text $$i|spellintian --picky); \ + if [ "$$text" != "" ]; then echo "### $$i ###"; echo $$text; fi \ + done + +spelling: + @for i in $$(find * -type f -name '*.pm'); do \ + if grep '=head1' $$i >/dev/null; then \ + text=$$(pod2text $$i|spellintian --picky); \ + if [ "$$text" != "" ]; then echo "### $$i ###"; echo $$text; fi \ + fi \ + done diff --git a/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf.pm b/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf.pm index d37bc06e0..2860030ac 100644 --- a/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf.pm +++ b/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf.pm @@ -474,7 +474,7 @@ Web-SSO configuration. use Lemonldap::NG::Common::Conf; # Lemonldap::NG::Common::Conf reads loacl configuration from lemonldap-ng.ini. - # Parameters can be overriden in a hash: + # Parameters can be overridden in a hash: my $confAccess = new Lemonldap::NG::Common::Conf( { type=>'File', diff --git a/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Build.pm b/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Build.pm index a694f8166..e87c7ae25 100644 --- a/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Build.pm +++ b/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Build.pm @@ -630,7 +630,7 @@ system. Lemonldap::NG::Manager::Build is used only to build javascript files and Lemonldap::NG constants Perl files. It has to be launched after each change. -=head2 DEVELOPPER CORNER +=head2 DEVELOPER CORNER To add a new parameter, you have to: diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal.pm index 16d32a61c..cc240941b 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal.pm @@ -53,7 +53,7 @@ declared during initialization. =head2 Initialization -The intialisation process subscribes portal to handler configuration reload and +The initialisation process subscribes portal to handler configuration reload and ask for handler initialization (L). So configuration read is triggered by handler at each reload. @@ -82,7 +82,7 @@ methods to call in the process and call do(). do() stores methods to call in $req->steps and launches Lemonldap::NG::Portal::Main::Process::process(). This method removes each method -stored in $req->steps and launches it. If the result is PE_OK, proces() +stored in $req->steps and launches it. If the result is PE_OK, process() continues, else it returns the error code. If the request was an Ajax one, do() responds in JSON format else it manages