Skip site navigation (1) Skip section navigation (2)

pgindent excluded files list

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: pgindent excluded files list
Date: 2010-03-31 14:27:03
Message-ID: 4BB35BB7.3090201@dunslane.net (view raw or flat)
Thread:
Lists: pgsql-hackers
I propose that we create a file containing the list of patterns to 
exclude from pgindent runs. It would look like this:

    #list of file patterns to exclude from pg_indent runs
    /s_lock\.h$
    /ecpg/test/expected/
    /snowball/libstemmer/
    /ecpg/include/(sqlda|sqltypes)\.h$
    /ecpg/include/preproc/struct\.h$
    /pl/plperl/ppport\.h$


Then a pgindent run would look like this:

    find . -name '*.[ch]' -type f -print | \
    egrep -v -f src/tools/pgindent/exclude_files | \
    xargs -n100 pgindent src/tools/pgindent/typedefs.list
      

which is shorter and more efficient and less error prone than the way it's done in the current instructions (which puts the patterns to be excluded in a series of egrep pipes).

Thoughts?

cheers

andrew


Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2010-03-31 14:44:47
Subject: Re: sorry, too many standbys already vs. MaxWalSenders vs. max_wal_senders
Previous:From: Bruce MomjianDate: 2010-03-31 14:19:51
Subject: Re: booleans in recovery.conf

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group