Re: little bug in current CVS - Mailing list pgsql-hackers

From Oleg Bartunov
Subject Re: little bug in current CVS
Date
Msg-id Pine.GSO.4.33.0102062009400.7605-100000@ra.sai.msu.su
Whole thread Raw
In response to Re: little bug in current CVS  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Tue, 6 Feb 2001, Tom Lane wrote:

> Oleg Bartunov <oleg@sai.msu.su> writes:
> > make[2]: Entering directory /home/postgres/cvs/pgsql/src/backend'
> > prereqdir=`cd parser/ && pwd` && \
> >   cd ../../src/include/parser/ && rm -f parse.h && \
> >   ln -s $prereqdir/parse.h .
> > ln: ./parser: File exists
> > make[2]: *** [../../src/include/parser/parse.h] Error 1
>
> Hm.  I bet your shell is failing to strip whitespace from the output of
> pwd, so that the ln command ends up looking like
>
>     ln -s /home/postgres/cvs/pgsql/src/backend/parser /parse.h .
>
> Can you check that theory by inserting an 'echo'?

you're right. shell is BASH_VERSION='2.04.0(1)-release'
Makefile looks too complex:
$(top_builddir)/src/include/parser/parse.h: $(srcdir)/parser/parse.h       prereqdir=`cd $(dir $<) && pwd` && \
cd$(dir $@) && rm -f $(notdir $@) && \         $(LN_S) $$prereqdir/$(notdir $<) .
 

We're already in src/backend directory, why not useln -sf parser/parse.h .



>
>             regards, tom lane
>
Regards,    Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83



pgsql-hackers by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: ADD CONSTRAINT ... FOREIGN KEY and custom data type.
Next
From: Peter Eisentraut
Date:
Subject: Re: little bug in current CVS