PATCH: Make sure gdb-cfg.texi is created

H. J. Lu hjl@lucon.org
Fri May 9 20:10:00 GMT 2003


On Fri, May 09, 2003 at 04:06:43PM -0400, Daniel Jacobowitz wrote:
> On Fri, May 09, 2003 at 12:59:43PM -0700, H. J. Lu wrote:
> > On Fri, May 09, 2003 at 03:32:06PM -0400, Daniel Jacobowitz wrote:
> > > 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?
> > > 
> > 
> > I got
> > 
> > # bash
> > # ln -s "doesn't exist" foo || echo bad
> > # test -e foo || echo "doesn't exist"
> > doesn't exist
> 
> Sure, but then why would "ln" or "cp" work from "doesn't exist"?

I have a tree with relative symlinks. all-cfg.texi in the source tree
is

# ls -l /export/gnu/src/gdb/gdb/gdb/doc/all-cfg.texi
lrwxrwxrwx    1 hjl      hjl            50 May  9 09:58 /export/gnu/src/gdb/gdb/gdb/doc/all-cfg.texi -> ../../../../../import/gdb/src/gdb/doc/all-cfg.texi

Since my build dir != source dir,

../../../../../import/gdb/src/gdb/doc/all-cfg.texi

doesn't exist in my build dir.


H.J.



More information about the Gdb-patches mailing list