Mercurial > repos > jcb-mpl > install_scilab611_fact
changeset 0:2a09c469e198 draft
Uploaded
author | jcb-mpl |
---|---|
date | Tue, 30 Nov 2021 08:51:51 +0000 |
parents | |
children | ead7333d2d81 |
files | install_scilab611_fact.xml |
diffstat | 1 files changed, 88 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/install_scilab611_fact.xml Tue Nov 30 08:51:51 2021 +0000 @@ -0,0 +1,88 @@ +<tool id="V19.10_inst_scilab" name="Install Scilab-6.1.1" version="0.0.1"> + <description> install scilab </description> + + <stdio> + <exit_code range="1:" level="fatal" /> + </stdio> + + + <command><![CDATA[ +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 +]]> + </command> + + + <configfiles> + <configfile name="script_file"> + <![CDATA[ if ~isdef('pls') then ... + atomsSystemUpdate(); ... + atomsInstall('FACT'); ... + atomsLoad('FACT'); ... + end; ... + x=${Xvalue}; ... + y=2*div(x); ... + y2=y.d; ... + ${result}=y2; ]]> + </configfile> + </configfiles> + + + <inputs> + <param name="Xvalue" value="4" type="integer" min="2" max="20" label="Number" o/> + </inputs> + + + <outputs> + <data name="result" format="tabular" label="res"/> + </outputs> + + +<help><![CDATA[ + + + +---------------------------------------------------------------------- + + +=========================================== +INSTALLATION OF SCILAB AND ITS FACT TOOLBOX +=========================================== + + +----------- +Description +----------- + +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. + +Once Scilab+Fact have been correctly installed, this function can be removed from the Galaxy menu. + + +----------- +Input files +----------- + + +**Xvalue** + +An integer + +- +------------ +Output files +------------ + +**Result** + +The input value multiplied by 2 + + + ]]> +</help> + + +<citations> +< +</citations> + +</tool>