On 2006-11-30 08:50+0100 Arjen Markus wrote:

> BUT: I do want to prevent us requiring Windows users to download and install
> all manner of tools before they can get started. The installation
> instructions for
> PLplot should ideally fit in 10 lines of text, each no longer than 80
> characters.
>
> (I have seen reams of documentation on how to install various software
> packages,
> and I tend to get very very depressed by them! And I think I am typical
> enough
> in that respect ;))

I take your point so we should eliminate the extra GNUWin32 tools dependency
since that appears to be easy to do.

Here are the issues and my suggested solutions.

(1) cat.

I think the best thing to do with cat is to replace it by a series of echo
commands.  See scripts/make_tarball.sh script where the usage message is
printed out that way. "echo" is supplied by the bash shell so using it
should be okay for win-bash (but please check).

(2) sed

We use that command in plplot-test.sh to allow cross-platform parsing for
all the different unix shells.  We should keep that use of sed as an
alternative for just that reason, but if (say) HAVE_BASH is set (we will
have to provide a bash test for our CBS to set that up), the script should
use the powerful bash parsing features instead of sed.

A google search came up with one bash parsing feature which appears to be
exactly what we need. I illustrate this parsing feature as follows:

[EMAIL PROTECTED]> xxxx='hello=3941' 
[EMAIL PROTECTED]> echo ${xxxx#*=}
3941

So this method of parsing out everything after the equals sign in a
plplot-test.sh option should just work with win-bash, but please check.

(There is also one other use of sed in plplot-test.sh, but it is just a
backup if some other method fails so we probably do not need to deal with
it.)

Anyhow, it is past time for me to get some sleep, but if one of you guys
does not implement the above simple changes first, I will do that tomorrow
evening (European time) and that may be all we need to get ctest scripts to
work on bare windows (without the extra GNUWin32 tools dependency).

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the
Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

-------------------------------------------------------------------------
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

Reply via email to