Mail Archives: cygwin-developers/2000/12/07/03:30:44
This is a multi-part message in MIME format.
------=_NextPart_000_0002_01C05FFE.0E3414C0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Good morning cygpeeps,
Enclosed is a patch for winsup/doc/doctool.c. I've extended it to allow
symbolically linked files to be considered as valid source files. This
allows doctool to find the correct files for those of us who check out the
entire :/cvs/src tree and use the configure-target-winsup to compile winsup.
Cheers,
edward
Text and attachment, so which ever is easier for you.
PS. In future, do you prefer attachments or do you just patch from the mbox
file?
Instructions:
cd ~foo/winsup/doc
patch < doctool.patch
Index: doctool.c
===================================================================
RCS file: /cvs/src/src/winsup/doc/doctool.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 doctool.c
--- doctool.c 2000/02/17 19:38:31 1.1.1.1
+++ doctool.c 2000/12/07 08:27:45
@@ -162,7 +162,7 @@
scan_directory(name);
}
- else if (S_ISREG(st.st_mode))
+ else if (S_ISREG(st.st_mode) || S_ISLNK(st.st_mode))
{
char *dot = strrchr(de->d_name, '.');
int i;
------=_NextPart_000_0002_01C05FFE.0E3414C0
Content-Type: application/octet-stream;
name="doctool.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="doctool.patch"
Index: doctool.c=0A=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A=
RCS file: /cvs/src/src/winsup/doc/doctool.c,v=0A=
retrieving revision 1.1.1.1=0A=
diff -u -r1.1.1.1 doctool.c=0A=
--- doctool.c 2000/02/17 19:38:31 1.1.1.1=0A=
+++ doctool.c 2000/12/07 08:27:45=0A=
@@ -162,7 +162,7 @@=0A=
scan_directory(name);=0A=
}=0A=
=0A=
- else if (S_ISREG(st.st_mode))=0A=
+ else if (S_ISREG(st.st_mode) || S_ISLNK(st.st_mode))=0A=
{=0A=
char *dot =3D strrchr(de->d_name, '.');=0A=
int i;=0A=
------=_NextPart_000_0002_01C05FFE.0E3414C0--
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
- Raw text -