summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjofret2009-05-05 15:11:39 +0000
committerjofret2009-05-05 15:11:39 +0000
commite44f315a1fadc2f3dea42ee9d9c248f59d39b92c (patch)
tree53ecef58f17dbf57443f6b9e6e80071d2fe647d1
parent00a2e6d81ec506a718b28bcd22aaf36c51790c55 (diff)
downloadscilab2c-e44f315a1fadc2f3dea42ee9d9c248f59d39b92c.tar.gz
scilab2c-e44f315a1fadc2f3dea42ee9d9c248f59d39b92c.tar.bz2
scilab2c-e44f315a1fadc2f3dea42ee9d9c248f59d39b92c.zip
adding etc files
-rw-r--r--etc/scilab2c.start56
1 files changed, 56 insertions, 0 deletions
diff --git a/etc/scilab2c.start b/etc/scilab2c.start
new file mode 100644
index 00000000..a09b10d0
--- /dev/null
+++ b/etc/scilab2c.start
@@ -0,0 +1,56 @@
+// ====================================================================
+// Allan CORNET
+// Copyright INRIA 2008
+// This file is released into the public domain
+// ====================================================================
+
+disp('Start Scilab 2 C Toolbox');
+
+etc_tlbx = get_absolute_file_path('scilab2c.start');
+etc_tlbx = getshortpathname(etc_tlbx);
+
+root_tlbx = strncpy( etc_tlbx, length(etc_tlbx)-length('\etc\') );
+
+pathmacros = pathconvert( root_tlbx ) + 'macros'+ filesep();
+
+disp('Load macros');
+//Load functions library
+scilab2c_mainlib = lib(pathmacros);
+scilab2c_ASTManagementlib = lib(pathmacros + "ASTManagement" + filesep());
+scilab2c_CCodeGenerationlib = lib(pathmacros + "CCodeGeneration" + filesep());
+scilab2c_ErrorMessageslib = lib(pathmacros + "ErrorMessages" + filesep());
+scilab2c_FunctionAnnotationlib = lib(pathmacros + "FunctionAnnotation"+ filesep());
+scilab2c_FunctionListlib = lib(pathmacros + "FunctionList" + filesep());
+scilab2c_GeneralFunctionslib = lib(pathmacros + "GeneralFunctions" + filesep());
+scilab2c_SymbolTablelib = lib(pathmacros + "SymbolTable" + filesep());
+scilab2c_ToolInitializationlib = lib(pathmacros + "ToolInitialization" + filesep());
+
+// load gateways
+//disp('Load gateways');
+
+//ilib_verbose(0);
+// load gateways
+//exec( root_tlbx + '/sci_gateway/loader_gateway.sce' );
+
+disp('Load help');
+
+//add help chapter
+path_addchapter = root_tlbx + "/jar/";
+if ( fileinfo(path_addchapter) <> [] ) then
+ add_help_chapter('Scilab 2 C', path_addchapter, %F);
+ clear add_help_chapter;
+end
+// ====================================================================
+// add demos
+//pathdemos = pathconvert(root_tlbx+"/demos/toolbox_skeleton.dem.gateway.sce",%f,%t);
+//add_demo("Toolbox skeleton",pathdemos);
+//clear pathdemos ;
+// ====================================================================
+clear warning_mode;
+clear path_addchapter;
+clear root_tlbx;
+clear etc_tlbx;
+clear pathmacros;
+clear pathconvert;
+// ====================================================================
+