Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* PATCH: Make sure gdb-cfg.texi is created
@ 2003-05-09 19:24 H. J. Lu
  2003-05-09 19:34 ` Daniel Jacobowitz
  2003-05-10  9:49 ` Eli Zaretskii
  0 siblings, 2 replies; 12+ messages in thread
From: H. J. Lu @ 2003-05-09 19:24 UTC (permalink / raw)
  To: GDB

[-- Attachment #1: Type: text/plain, Size: 143 bytes --]

My gdb source tree is created with relative symlinks. ln -s won't work
with them. Here is a patch to make sure gdb-cfg.texi is created.


H.J.

[-- Attachment #2: gdb-link.patch --]
[-- Type: text/plain, Size: 991 bytes --]

2003-05-09  H.J. Lu <hongjiu.lu@intel.com>

	* Makefile.in (gdb-cfg.texi): Make sure it is created.

--- gdb/doc/Makefile.in.link	2003-04-02 16:40:17.000000000 -0800
+++ gdb/doc/Makefile.in	2003-05-09 12:19:13.000000000 -0700
@@ -246,9 +246,13 @@ GDBvn.texi : ${gdbdir}/version.in
 # defined anyways).
 gdb-cfg.texi: ${srcdir}/${DOC_CONFIG}-cfg.texi
 	(test "$$LN_S" = "ln -s" && \
-	  ln -s ${srcdir}/${DOC_CONFIG}-cfg.texi gdb-cfg.texi) || \
-	ln ${srcdir}/${DOC_CONFIG}-cfg.texi gdb-cfg.texi || \
-	cp ${srcdir}/${DOC_CONFIG}-cfg.texi gdb-cfg.texi
+	  ln -s ${srcdir}/${DOC_CONFIG}-cfg.texi gdb-cfg.texi && \
+	  test -e gdb-cfg.texi) || \
+	(rm -f gdb-cfg.texi && \
+	  ln ${srcdir}/${DOC_CONFIG}-cfg.texi gdb-cfg.texi && \
+	  test -e gdb-cfg.texi) || \
+	(rm -f gdb-cfg.texi && \
+	 cp ${srcdir}/${DOC_CONFIG}-cfg.texi gdb-cfg.texi)
 
 # GDB MANUAL: texinfo source, using @set/@clear/@value/@ifset/@ifclear
 # If your texinfo or makeinfo don't support these, get a new texinfo release

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2003-05-10 19:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-09 19:24 PATCH: Make sure gdb-cfg.texi is created H. J. Lu
2003-05-09 19:34 ` Daniel Jacobowitz
2003-05-09 19:59   ` H. J. Lu
2003-05-09 20:06     ` Daniel Jacobowitz
2003-05-09 20:10       ` H. J. Lu
2003-05-09 20:18         ` Daniel Jacobowitz
2003-05-09 20:35           ` H. J. Lu
2003-05-09 20:42             ` Daniel Jacobowitz
2003-05-10  9:49 ` Eli Zaretskii
2003-05-10 15:39   ` Andreas Schwab
2003-05-10 17:57     ` Eli Zaretskii
2003-05-10 19:00       ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox