PATCH: Make sure gdb-cfg.texi is created
Daniel Jacobowitz
drow@mvista.com
Fri May 9 19:34:00 GMT 2003
On Fri, May 09, 2003 at 12:24:34PM -0700, H. J. Lu wrote:
> 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.
That patch doesn't make sense. You're saying that ln -s can succeed
when test -e would fail?
> 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
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
More information about the Gdb-patches
mailing list