0
|
1 <tool id="V19.10_inst_scilab" name="Install Scilab-6.1.1" version="0.0.1">
|
|
2 <description> install scilab </description>
|
|
3
|
|
4 <stdio>
|
|
5 <exit_code range="1:" level="fatal" />
|
|
6 </stdio>
|
|
7
|
|
8
|
|
9 <command><![CDATA[
|
|
10 if [ ! -d $__root_dir__/packages/scilab-6.1.1 ]; then wget -P $__root_dir__/packages/ https://www.scilab.org/download/6.1.1/scilab-6.1.1.bin.linux-x86_64.tar.gz && tar -xvf $__root_dir__/packages/scilab-6.1.1.bin.linux-x86_64.tar.gz -C $__root_dir__/packages/ && rm $__root_dir__/packages/scilab-6.1.1.bin.linux-x86_64.tar.gz; else $__root_dir__/packages/scilab-6.1.1/bin/scilab-cli -nb -quit -f $* < ${script_file}; fi
|
|
11 ]]>
|
|
12 </command>
|
|
13
|
|
14
|
|
15 <configfiles>
|
|
16 <configfile name="script_file">
|
|
17 <![CDATA[ if ~isdef('pls') then ...
|
|
18 atomsSystemUpdate(); ...
|
|
19 atomsInstall('FACT'); ...
|
|
20 atomsLoad('FACT'); ...
|
|
21 end; ...
|
|
22 x=${Xvalue}; ...
|
|
23 y=2*div(x); ...
|
|
24 y2=y.d; ...
|
|
25 ${result}=y2; ]]>
|
|
26 </configfile>
|
|
27 </configfiles>
|
|
28
|
|
29
|
|
30 <inputs>
|
|
31 <param name="Xvalue" value="4" type="integer" min="2" max="20" label="Number" o/>
|
|
32 </inputs>
|
|
33
|
|
34
|
|
35 <outputs>
|
|
36 <data name="result" format="tabular" label="res"/>
|
|
37 </outputs>
|
|
38
|
|
39
|
|
40 <help><![CDATA[
|
|
41
|
|
42
|
|
43
|
|
44 ----------------------------------------------------------------------
|
|
45
|
|
46
|
|
47 ===========================================
|
|
48 INSTALLATION OF SCILAB AND ITS FACT TOOLBOX
|
|
49 ===========================================
|
|
50
|
|
51
|
|
52 -----------
|
|
53 Description
|
|
54 -----------
|
|
55
|
|
56 This functions performs two processes: 1) the download + unzip of Scilab-6.1.1 in the folder: galaxy/packages/scilab-6.1.1, 2) the installation of the FACT toolbox in Scilab.
|
|
57
|
|
58 Once Scilab+Fact have been correctly installed, this function can be removed from the Galaxy menu.
|
|
59
|
|
60
|
|
61 -----------
|
|
62 Input files
|
|
63 -----------
|
|
64
|
|
65
|
|
66 **Xvalue**
|
|
67
|
|
68 An integer
|
|
69
|
|
70 -
|
|
71 ------------
|
|
72 Output files
|
|
73 ------------
|
|
74
|
|
75 **Result**
|
|
76
|
|
77 The input value multiplied by 2
|
|
78
|
|
79
|
|
80 ]]>
|
|
81 </help>
|
|
82
|
|
83
|
|
84 <citations>
|
|
85 <
|
|
86 </citations>
|
|
87
|
|
88 </tool>
|