Re: Ignore CVS directories when building documentation

2006-01-12 Thread Corinna Vinschen
On Jan 11 21:32, Igor Peshansky wrote:
   * doctool.c (scan_directory): Ignore CVS directories.

Thanks, applied.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat


Ignore CVS directories when building documentation

2006-01-11 Thread Igor Peshansky
The doctool program recursively searches for SGML/XML chunks in
subdirectories.  CVS keeps base copies of cvs edited files in CVS/Base.
Including both the base copy and the modified file results in duplicate
ids and other validation errors (not to mention wrong output).  This patch
tells doctool to ignore CVS directories during recursive traversals.

As usual, the ChangeLog is below.
Igor
==
2006-01-11  Igor Peshansky  [EMAIL PROTECTED]

* doctool.c (scan_directory): Ignore CVS directories.

-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de BergeracIndex: doctool.c
===
RCS file: /cvs/src/src/winsup/doc/doctool.c,v
retrieving revision 1.2
diff -u -p -r1.2 doctool.c
--- doctool.c   4 Dec 2001 04:20:30 -   1.2
+++ doctool.c   12 Jan 2006 02:27:33 -
@@ -157,7 +157,7 @@ scan_directory(dirname)
 
 STAT(name, st);
 
-if (S_ISDIR(st.st_mode))
+if (S_ISDIR(st.st_mode)  strcmp(de-d_name, CVS) != 0)
 {
   scan_directory(name);
 }