Kayvan> On Tue, Jul 09, 2002 at 05:21:07PM +0200, Jean-Marc Lasgouttes wrote:
>> >>>>> "Soeren" == Soeren Pietsch <[EMAIL PROTECTED]> writes:
>> 
>> >>>>>>> "Soeren" == Soeren Pietsch <[EMAIL PROTECTED]> writes:
>> Soeren> Hi, I had a bit of a problem with the lyx configure script on
>> Soeren> a cygwin environment. The following check only works if the sh
>> Soeren> shell points to the bash shell.
>> 
>> Soeren> ### Adjust PATH for Win32 (Cygwin) if test "x$OSTYPE" =
>> Soeren> xcygwin; then echo "configure: cygwin detected; path
>> Soeren> correction" srcdir=`cygpath -w "${srcdir}" | tr '\\\\' /` echo
>> Soeren> "srcdir=${srcdir}" fi
>> 
>> Soeren> To my knowledge there is no OSTYPE defined on the sh shell
>> Soeren> that is something specific to bash. Perhaps that should be
>> Soeren> mentioned somewhere. Alternatively the following check should
>> Soeren> be sufficient for both bash and sh. if test -f
>> Soeren> /bin/cygwin1.dll; then
>> 
>> Jean-Marc> What does "uname -s" return? I guess this is the most
>> Jean-Marc> usable information.
>> 
>> Soeren> CYGWIN_NT-5.0
>> 
>> Soeren> I think uname -s should work.
>> 
>> Can you come up with a patch?
attached
Kayvan could you check that it does not harm on your installation.

Kayvan> How come I don't see this problem? I regularly compile on Cygwin.

May be you have a link sh.exe -> bash.exe???
Or you don't have your own layouts????
If I remember right the problem was that I have my own layout files in
~/.lyx/layouts The configure script would with out the patch not
find(check) the class files and therefore the layouts where not
usable. If you don't have own layouts you will notice no difference.

But if you debug it you will see x$OSTYPE is only available on a bash
shell and not on a sh shell.
So the if will always fail on a sh shell which is not intended ;)

Soeren
 
======================================================================
One possible reason that things aren't going according to plan
is that there never was a plan in the first place.

Attachment: cygwin_detection_patch.
Description: Binary data

Reply via email to