From: R.K. O. <rk...@ow...> - 2008-08-06 19:02:25
|
The later versions of modules (~ 3.2.6) append-path [ -d C | --delim C | --delim=C ] variable value prepend-path [ -d C | --delim C | --delim=C ] variable value Append or prepend value to environment variable. The variable is a colon, or delimiter, separated list such as "PATH=directory:directory:directory". The default delimiter is a colon ':', but an arbitrary one can be given by the --delim option. For example a space can be used instead (which will need to be handled in the Tcl specially by enclosing it in " " or { }). A space, however, can not be specified by the --delim=C form. On Wed, Aug 6, 2008 at 10:12 AM, Rhys Ulerich <rhy...@gm...> wrote: > Hello, > > Is there a way to prepend/append to a non-path environment variable? I see > prepend-path and append-path within the modulefile(4) man page, but I don't > see a way to handle non-path variables intelligently. > > My use case is to tweak CPPFLAGS/LDFLAGS by adding and removing -Idir and > -Ldir respectively. I don't want to hose anything already present in those > variables. The 'setenv' doesn't do what I want here. > > Any help appreciated, > Rhys > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Modules-interest mailing list > Mod...@li... > https://lists.sourceforge.net/lists/listinfo/modules-interest > > |