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  <br...@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
-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to