From 27f4b9a0296ee6c360fed232f4619fd92c31be24 Mon Sep 17 00:00:00 2001 From: Steve Hancock Date: Tue, 5 Jan 2021 07:10:26 -0800 Subject: [PATCH] update build.pl to scan for pod text in .pm files --- dev-bin/build.pl | 62 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/dev-bin/build.pl b/dev-bin/build.pl index 05b36cff..5d34ed5b 100755 --- a/dev-bin/build.pl +++ b/dev-bin/build.pl @@ -362,6 +362,9 @@ sub update_version_number { my $Tidy_pm_file = $lib_path . "Tidy.pm"; + my $saw_pod = scan_for_pod( @sources ); + return if ($saw_pod); + # I have removed this one; it was useful in development # CS Check that Selected files have the current VERSION @@ -584,6 +587,65 @@ EOM return 1; } +sub scan_for_pod { + + # perltidy .pm files should not contain pod text + my (@sources) = @_; + + foreach my $source_file (@sources) { + + if ( !-f $source_file ) { + print < to continue +------------------------------------------------------------------- +EOM + } + else { + print <$runme" ) ) { -- 2.39.5