Hi Alan, > find_program(SH_EXECUTABLE bash) > > works. If the name of the program is actually win-bash rather than bash in > your case you should use the following logic instead: > > find_program(SH_EXECUTABLE bash) > find_program(SH_EXECUTABLE win-bash) > > The first one works on Unix, and the second one may be necessary on windows > where win-bash is installed, but I am not sure.
I made some changes, but before I cvs it, I want your comment on this: I added as you wrote the win-bash line find_program(SH_EXECUTABLE bash) find_program(SH_EXECUTABLE win-bash) if(SH_EXECUTABLE) set(HAVE_BASH ON) else(SH_EXECUTABLE) find_program(SH_EXECUTABLE sh) endif(SH_EXECUTABLE) Important here is, that SH_EXECUTABLE is either bash, or win-bash or in some cases only sh (on unix without bash), with full absolute path. Problem is now, that in some of the test scripts "sh" is used - what I did was to replace that with @SH_EXECUTABLE@ - worked ok on windows, should also work on linux, shouldn't it? Also the first line of all sh files needs to be replaced from #!/bin/sh to [EMAIL PROTECTED]@ - this will be in most cases now bash instead of sh, but this is no problem isn't it? But on the other hand, are this scripts also used by the (deprecated) automake build system? Are these changes allowed than? in plplot-test.sh is another line at the end, which wants sed. Is it possible to replace it? If not, we can make conditional win32 execution with if test "@WIN32@" = "1"; then code for windows else code for all others fi or? We need that in any case for the Java script, since the java call is not windows compliant. But it looks, that this actually works out much better than I thought. So for Windows you just put another executable (win-bash) in the PATH. That's ok. There is actually another bash provided by djgpp, which also runs in Windows. You can find it here: http://www.delorie.com/pub/djgpp/current/v2gnu/ The zip file we need is: bsh204b.zip (bash 2.04 binary) Just in case win-bash is not good enough for our needs, we could try this bash. Regards, Werner -- Dipl. Ing. Werner Smekal Institut fuer Allgemeine Physik Technische Universitaet Wien Wiedner Hauptstr 8-10 A-1040 Wien Austria email: [EMAIL PROTECTED] web: http://www.iap.tuwien.ac.at/~smekal phone: +43-(0)1-58801-13463 (office) +43-(0)1-58801-13469 (laboratory) fax: +43-(0)1-58801-13499 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel