Re: [COMMITTERS] pgsql: Remove tabs in SGML. - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [COMMITTERS] pgsql: Remove tabs in SGML.
Date
Msg-id 201002051452.o15EqH516497@momjian.us
Whole thread Raw
In response to Re: [COMMITTERS] pgsql: Remove tabs in SGML.  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: [COMMITTERS] pgsql: Remove tabs in SGML.
List pgsql-hackers
Peter Eisentraut wrote:
> On tis, 2010-01-26 at 10:20 -0800, David Fetter wrote:
> > On Tue, Jan 26, 2010 at 02:21:29PM +0000, Bruce Momjian wrote:
> > > Log Message:
> > > -----------
> > > Remove tabs in SGML.
> >
> > Can we see about making a commit hook for CVS that disallows \t in
> > SGML files?  The process in git is pretty simple.
>
> Better write a check in the makefile.

Done, and attached.  The rule is more shell script than makefile, but I
am not sure how else to do it.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +
Index: doc/src/sgml/Makefile
===================================================================
RCS file: /cvsroot/pgsql/doc/src/sgml/Makefile,v
retrieving revision 1.135
diff -c -c -r1.135 Makefile
*** doc/src/sgml/Makefile    6 Jan 2010 19:07:05 -0000    1.135
--- doc/src/sgml/Makefile    5 Feb 2010 14:49:26 -0000
***************
*** 345,350 ****
--- 345,352 ----

  endif # sqlmansectnum != 7

+ check-tabs:
+     ( ! grep '    ' $(wildcard $(srcdir)/*.sgml $(srcdir)/ref/*.sgml) ) || (echo "Tabs appear in SGML files";  exit
1)

  ##
  ## Clean

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Confusion over Python drivers
Next
From: Peter Eisentraut
Date:
Subject: Re: Confusion over Python drivers