On 10/13/2013 09:59 AM, Martin Schreiber wrote:

It depends on where the MSEide binary has been installed. It can be completely
independed on where the source has been installed.
You probably need to setup the initial mseidexx.sta in the installer.
The minimal mseideli.sta:
"
[mainfo.mainstatfile]
msedir=the_mse_source_root_directory
target=i386-linux
targetosdir=linux
"
or
"
[mainfo.mainstatfile]
msedir=the_mse_source_root_directory
target=x86_64-linux
targetosdir=linux
"
mseidewi.sta:
"
[mainfo.mainstatfile]
msedir=the_mse_source_root_directory
target=i386-windows
targetosdir=windows
"
I'll change MSEide to setup the target and targetosdir automatically so the
minimal file on all platforms is:
"
[mainfo.mainstatfile]
msedir=the_mse_source_root_directory
"


I know the mseide binary can be installed anywhere. But for _anyone__using_ the downloaded packages (mine and possibly yours) then we know what the directory structure is. By setting the ${MSEDIR} variable then I don't have to worry about over writing an existing .mseide/mseidexx.sta configuration file.

I have set up a default .mseide/mseidexx.sta file for the packages.

But what I really had in mind was something like this.

At some point in the mseide startup process you do something like the following:

curdir := getcurrentdir ();        // save current directory
chdir ('..');            // back up 1 directory, should be apps
chdir ('..');            // back up 1 directory, some unknown directory
dirstr := getcurrentdir ();
if findfirst (dirstr + 'apps/ide', faDirectory, searchapps) = 0
then begin
    if findfirst (dirstr + 'lib/common', faDirectory, searchlib)  = 0
    then begin
        // set the ${MSEDIR} to dirstr;
    end;
    findclose (searchlib);
end;
findclose (searchapps);

chdir (curdir);        // reset back to original directory.


If you could tell me where in the mseide app the .sta file is loaded I will write and test the above to see how it works.

Patrick



------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to