David,
You have three options:
* use pkg-config.
<token key="MONO"
value="${pkg-config::get-variable('mono','prefix')}/bin/mono" />
* use framework::get-runtime-engine.
For example:
<token key="MONO"
value="${framework::get-runtime-engine(framework::get-target-framework())}"
/>
* modify your shellscript to find the path to mono (using pkg-config).
For example:
#!/bin/sh
exec `pkg-config --variable=prefix mono`/bin/mono
@libdir@/gnome-rdp/gnome-rdp.exe $MONO_EXTRA_ARGS "$@"
My preference goes to the last option, as your script would continue to work
if someone decides to move mono after you app is installed.
Hope this helps,
Gert
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Paleino
Sent: vrijdag 27 juni 2008 21:57
To: [email protected]
Subject: Re: [NAnt-users] Detecting path at runtime
On Fri, 27 Jun 2008 18:03:24 +0200, David Paleino wrote:
> On Fri, 27 Jun 2008 17:48:24 +0200, Gert Driesen wrote:
>
> > Can I ask why you need the path to the mono shellscript?
>
> And, in my buildfile:
>
> [..]
> <token key="MONO" value="/usr/bin/mono" />
Obviously, this is not standard. One might want [1] to use a version in
/usr/local/bin/, for example, and that line is failing for this user.
[1] e.g. by putting /usr/local/bin before /usr/bin in $PATH.
Kindly,
David
--
. ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino
: :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG:
1392B174 ----|---- http://snipr.com/qa_page
`- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users