This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ITP] re2c (3rd try)


Hi Max schri

> The original intent (AFAICS) was for you to be able to simply use
> the contents of lnconf.sh as ${srcdir}/configure, and then use an
> unmodified g-b-s. Unfortunately, that plan is spoilt, because patch
> doesn't restore the execute mode on new files. You can avoid
> that by calling it via sh:

Ah well, it needs to be in the source directory where configure is.
Well, I thought it would act like `lndir <frompath>` which symlinks the
frompath to pwd.  And I think it should do this, regardless where the
script is located!

> conf() {
>   (cd ${objdir} && \
>   sh ${srcdir}/lnconf.sh )
> }

> Although, it would be more convenient if g-b-s did:

> if [ -f ${srcdir}/lnconf.sh ]; then
>   # do the above
> else
>   # do the existing configure code
> fi


Looks ok.

Gerrit
-- 
=^..^=


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]