Re: WIP pgindent replacement

Andrew Dunstan <andrew@dunslane.net>

From: Andrew Dunstan <andrew@dunslane.net>
To: Bruce Momjian <bruce@momjian.us>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2012-08-03T16:51:03Z
Lists: pgsql-hackers
On 08/03/2012 10:51 AM, Bruce Momjian wrote:


> OK, sure, we can keep the pgindent name --- I was just trying to be
> consistent.  One problem with the lack of an extension is that there is
> no easy way for the Perl cleanup instructions to find all the Perl
> executables --- right now it looks for an extension.  Do we have other
> Perl scripts in our tree that don't end in *.pl or *.pm?  I didn't find
> any with this script:
>
> 	$ find . -type f -exec file {} \;|grep Perl
> 	./src/backend/catalog/Catalog.pm: Perl5 module source text
> 	./src/tools/msvc/MSBuildProject.pm: Perl5 module source text
> 	./src/tools/msvc/Project.pm: Perl5 module source text
> 	./src/tools/msvc/Mkvcbuild.pm: Perl5 module source text
> 	./src/tools/msvc/Install.pm: Perl5 module source text
> 	./src/tools/msvc/Solution.pm: Perl5 module source text
> 	./src/tools/msvc/VCBuildProject.pm: Perl5 module source text
> 	./src/tools/msvc/VSObjectFactory.pm: Perl5 module source text

Try:

    find . -exec file {} \; | egrep 'perl script|perl -w script|Perl5
    module'


cheers

andrew