sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
- From: Eric Sandall <eric AT sandall.us>
- To: sm-discuss AT lists.ibiblio.org
- Subject: Re: [SM-Discuss] Persistence wiki
- Date: Mon, 23 Aug 2004 08:40:36 -0700
Quoting Andrew <afrayedknot AT thefrayedknot.armory.com>:
> On Sun, Aug 22, 2004 at 05:28:54PM -0700, Eric Sandall wrote:
> OPTS is a poor choice for a persistent variable since it has another use.
> But for a persistent variable of a non-conflicting name, whatever value
> it is set to at the end of a file is saved and reloaded in the next file,
> consequently if you dont do anything in the next file to that variable
> it will get saved with the same value it was loaded with.
>
> In other words they are persistent between files.
Either you misunderstood what I was asking or I wasn't quite clear in what I
wanted. ;)
I want to know if I can modify OPTS in CONFIGURE and have the $OPTS used in
BUILD have those changes. I just tested with today's (20040823) Sorcery and
OPTS is not saved between files (at least from CONFIGURE to BUILD).
What I wanted (and should be able to do so we can continue to use
default_build
in spells that need extra configure flags) is in CONFIGURE I ask if they want
Midi support (snd spell):
config_query MIDI "include sndlib midi module?" n
...
if [ "$MIDI" == "y" ]
then
OPTS="$OPTS --with-midi"
fi &&
...
And have those options added to OPTS in BUILD, yet when I do `echo OPTS =
$OPTS`
in BUILD I get this:
OPTS = --with-gl --with-ladspa --with-gsl --with-fftw
So how do we go about modifying OPTS? Or do we have to add BUILD files and
make
more variables, such as:
CONFIGURE:
config_query MIDI "include sndlib midi module?" n
...
persistent_add MIDI_OPTS &&
if [ "$MIDI" == "y" ]
then
MIDI_OPTS="--with-midi"
fi &&
...
BUILD:
./configure --prefix=$INSTALL_ROOT/usr \
--with-static-xm \
$MIDI \
$OPTS &&
...
snd is slightly a bad example as it already has a BUILD file so my main caveat
with this method (needing BUILD files just to add options) isn't that great,
but it's what I'm working with right now. ;)
-sandalle
--
Eric Sandall | Source Mage GNU/Linux Developer
eric AT sandall.us PGP: 0xA8EFDD61 | http://www.sourcemage.org/
http://eric.sandall.us/ | SysAdmin @ Inst. Shock Physics @ WSU
http://counter.li.org/ #196285 | http://www.shock.wsu.edu/
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
-
[SM-Discuss] Persistence wiki,
Vladimír Marek, 08/21/2004
-
Re: [SM-Discuss] Persistence wiki,
Eric Sandall, 08/21/2004
-
Re: [SM-Discuss] Persistence wiki,
Andrew, 08/22/2004
- Re: [SM-Discuss] Persistence wiki, Jason Flatt, 08/26/2004
-
Re: [SM-Discuss] Persistence wiki,
Vladimír Marek, 08/22/2004
-
Re: [SM-Discuss] Persistence wiki,
Eric Sandall, 08/22/2004
-
Re: [SM-Discuss] Persistence wiki,
Andrew, 08/22/2004
-
Re: [SM-Discuss] Persistence wiki,
Eric Sandall, 08/23/2004
-
Re: [SM-Discuss] Persistence wiki,
Andrew, 08/23/2004
- Re: [SM-Discuss] Persistence wiki, Seth Alan Woolley, 08/23/2004
- Re: [SM-Discuss] Persistence wiki, Andrew, 08/23/2004
- Re: [SM-Discuss] Persistence wiki, Eric Sandall, 08/23/2004
- Re: [SM-Discuss] Persistence wiki, Andrew, 08/23/2004
- Re: [SM-Discuss] Persistence wiki, Eric Sandall, 08/23/2004
- Re: [SM-Discuss] Persistence wiki, Andrew, 08/23/2004
- Re: [SM-Discuss] Persistence wiki, Eric Sandall, 08/23/2004
-
Re: [SM-Discuss] Persistence wiki,
Andrew, 08/23/2004
-
Re: [SM-Discuss] Persistence wiki,
Eric Sandall, 08/23/2004
-
Re: [SM-Discuss] Persistence wiki,
Andrew, 08/22/2004
-
Re: [SM-Discuss] Persistence wiki,
Eric Sandall, 08/22/2004
-
Re: [SM-Discuss] Persistence wiki,
Andrew, 08/22/2004
-
Re: [SM-Discuss] Persistence wiki,
Eric Sandall, 08/21/2004
- <Possible follow-up(s)>
-
RE: Re: [SM-Discuss] Persistence wiki,
evraire, 08/23/2004
- RE: Re: [SM-Discuss] Persistence wiki, Eric Sandall, 08/23/2004
Archive powered by MHonArc 2.6.24.