From: Steve Hancock Date: Tue, 5 Jan 2021 15:10:26 +0000 (-0800) Subject: update build.pl to scan for pod text in .pm files X-Git-Tag: 20210111~11 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=27f4b9a0296ee6c360fed232f4619fd92c31be24;p=perltidy.git update build.pl to scan for pod text in .pm files --- 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" ) ) {