On Thursday 03 July 2003 10:24, Martin Spott wrote:

> Nice. You still can save a bit of work on maintaining the script by
> replacing the manually edited aircraft selection list. For example:
>
> AIRCRAFT=`fgfs --show-aircraft | awk '{print $1}'`
> i=1
> echo "Choose your Aircraft - The default is c172p"
> for n in ${AIRCRAFT}; do
>   echo $i\) $n
>  i=`expr $i + 1`
> done
>

Thanks :)

I'm not very well versed in shell scripting. I knew there was a way to extract 
the aircraft by using the --show-aircraft parameter, but didn't know what it 
was. I don't have fgfs env var set, because I have 4 different fgfs 
executables on here.

This site was pretty useful when I wrote the script.. 
http://www.freeos.com/guides/lsst/index.html

I formatted it the way I did because I can't scroll up in cygwin window so I 
made it so it was mostly on one screen.

I'll add what you showed me there to the one I use on linux for the CVS 
version ... this that I posted I use for the release version which shouldn't 
change.

> You probably hav to work around the aircraft aliases,

You wouldn't say that if you knew how little I know about shell scripting! LOL
Let's just say that this script is the present development of my bash 
scripting skills, but i keep trying to learn more as I go along.

Re's

WillyB


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to