From: bri Date: Mon, 10 Feb 2014 13:52:32 +0000 (+0400) Subject: First preliminary version X-Git-Tag: Delivery_V1_0_2013_07_12~28 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2560fcf1fa85c3851e7e11fd850baaa66d2b2de5;p=tools%2Fsimanio.git First preliminary version --- 2560fcf1fa85c3851e7e11fd850baaa66d2b2de5 diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..58f7a66 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,5 @@ +project(SimanIO) +cmake_minimum_required(VERSION 2.4) +add_subdirectory(src lib) + + diff --git a/scripts/README b/scripts/README new file mode 100644 index 0000000..16702b7 --- /dev/null +++ b/scripts/README @@ -0,0 +1,30 @@ +How prepare runnable SALOME-SIMAN code + +1. Use standard SALOME 6.5.0 disctibutive for installation. + +2. Take from CVS SALOME-SIMAN code for branch "BR_siman_phase1" based on SALOME 6.5.0 + +startinmg from SIMAN repository like : +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/SIMAN checkout -r BR_siman_phase1 SIMANIO_SRC + +Move the required product wso2-wsf-cpp-2.1.0 and all scripts to SALOME root directory +Adjust the scripts if necessary + +Take from CVS other modules like it is done in SALOME_CVS_checkout_branch_BR_siman_phase1.sh +"KERNEL GUI GEOM MED SMESH VISU PARAVIS YACS NETGENPLUGIN GHS3DPLUGIN BLSURFPLUGIN HexoticPLUGIN GHS3DPRLPLUGIN PYHELLO" + +3. Build all modules starting from SIMANIO_SRC using the scripts + +4. Check runnability of Salome + +5. Define (export) the environment variable SALOME_ROOT_DIR pointing to the directory there SALOME and scripts are build. +in .bashrc file + +6. If necessary run SIMAN application servers +/usr/share/tomcat6/bin/startup.sh +to stop use +/usr/share/tomcat6/bin/shutdown.sh + +In the file env_siman.sh adjust SIMAN_WS_HOST variable to point to SIMAN application server + + diff --git a/scripts/SALOME_CVS_checkout_branch_BR_siman_phase1.sh b/scripts/SALOME_CVS_checkout_branch_BR_siman_phase1.sh new file mode 100644 index 0000000..c6f206d --- /dev/null +++ b/scripts/SALOME_CVS_checkout_branch_BR_siman_phase1.sh @@ -0,0 +1,85 @@ +#!/bin/bash + +# Move *_6.5.0 to some dir, say _6.5.0_origin +#mkdir _6.5.0_origin + +#for i in *_6.5.0; do +# if [ -d $i ]; then +# echo $i +# mv $i _6.5.0_origin +# fi +#done + +# or remove *_6.5.0 +# rm -Rf *_6.5.0 + + +# Check out SALOME-SIMAN code from the branch BR_siman_phase1 +# and rename *_SRC to *SRC_6.5.0 to reuse 6.5.0 env, build and product scripts + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/KERNEL login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/KERNEL checkout -r BR_siman_phase1 KERNEL_SRC +mv KERNEL_SRC KERNEL_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/GUI login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/GUI checkout -r BR_siman_phase1 GUI_SRC +mv GUI_SRC GUI_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/GEOM login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/GEOM checkout -r BR_siman_phase1 GEOM_SRC +mv GEOM_SRC GEOM_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/MED login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/MED checkout -r BR_siman_phase1 MED_SRC +mv MED_SRC MED_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/SMESH login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/SMESH checkout -r BR_siman_phase1 SMESH_SRC +mv SMESH_SRC SMESH_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/EXAMPLES login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/EXAMPLES checkout -r BR_siman_phase1 PYHELLO1_SRC +mv PYHELLO1_SRC PYHELLO_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/VISU login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/VISU checkout -r BR_siman_phase1 VISU_SRC +mv VISU_SRC VISU_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/PARAVIS login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/PARAVIS checkout -r BR_siman_phase1 PARAVIS_SRC +mv PARAVIS_SRC PARAVIS_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/YACS login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/YACS checkout -r BR_siman_phase1 YACS_SRC +mv YACS_SRC YACS_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/NETGENPLUGIN login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/NETGENPLUGIN checkout -r BR_siman_phase1 NETGENPLUGIN_SRC +mv NETGENPLUGIN_SRC NETGENPLUGIN_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/GHS3DPLUGIN login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/GHS3DPLUGIN checkout -r BR_siman_phase1 GHS3DPLUGIN_SRC +mv GHS3DPLUGIN_SRC GHS3DPLUGIN_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/GHS3DPRLPLUGIN login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/GHS3DPRLPLUGIN checkout -r BR_siman_phase1 GHS3DPRLPLUGIN_SRC +mv GHS3DPRLPLUGIN_SRC GHS3DPRLPLUGIN_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/BLSURFPLUGIN login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/BLSURFPLUGIN checkout -r BR_siman_phase1 BLSURFPLUGIN_SRC +mv BLSURFPLUGIN_SRC BLSURFPLUGIN_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/HEXOTICPLUGIN login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/HEXOTICPLUGIN checkout -r BR_siman_phase1 HexoticPLUGIN_SRC +mv HexoticPLUGIN_SRC HexoticPLUGIN_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/EXAMPLES login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/EXAMPLES checkout -r BR_siman_phase1 SAMPLES_SRC +mv SAMPLES_SRC SAMPLES_SRC_6.5.0 + + +# Check out SALOME-SIMAN SIMANIO_SRC, the scripts and the required product wso2-wsf-cpp-2.1.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/SIMAN login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/SIMAN checkout -r BR_siman_phase1 SIMANIO_SRC + diff --git a/scripts/build.csh b/scripts/build.csh new file mode 100644 index 0000000..8eb0a32 --- /dev/null +++ b/scripts/build.csh @@ -0,0 +1,463 @@ +#!/bin/csh -f + +#################################################################################### +# File : build.csh +# Created : Thu Jan 27 09:50:55 2005 +# Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com) +# Project : SALOME +# Module : Installation Wizard +# Copyright : 2002-2012 CEA +# +# This script is the part of the SALOME installation procedure. +# +# This script can be used to build and install SALOME modules from sources. +# Try build.csh -h for more details about usage. +# +#################################################################################### + +set is_build_configure=0 +set is_configure=0 +set inst_with_gui=1 +set is_delete=0 +set verbose_level=2 +set params="" +set modules=(KERNEL GUI GEOM MED SMESH VISU PARAVIS YACS NETGENPLUGIN GHS3DPLUGIN BLSURFPLUGIN HexoticPLUGIN GHS3DPRLPLUGIN COMPONENT PYCALCULATOR CALCULATOR HELLO PYHELLO LIGHT PYLIGHT SIERPINSKY RANDOMIZER HEXABLOCK HEXABLOCKPLUGIN ATOMIC ATOMGEN ATOMSOLV HOMARD JOBMANAGER) +set optim="" +set is_install=1 +set is_help=0 +set is_tui=0 +set prefix="" +set def_install_dir="/INSTALL" +set b_params="" + +######################################################### +# parse parameters +######################################################### +while ( ${%1} > 0 ) + if ( "$1" == "-b" ) then + set is_build_configure=1 + set is_configure=1 + else if ( "$1" == "-c" ) then + set is_configure=1 + else if ( "$1" == "-w" ) then + set inst_with_gui=0 + else if ( "$1" == "-d" ) then + set is_delete=1 + else if ( "$1" == "-o" ) then + set optim="--enable-production=yes --disable-debug" + else if ( "$1" == "-v" ) then + shift + set verbose_level=$1 + else if ( "$1" == "-p" ) then + shift + set is_install=1 + set prefix=$1 + else if ( "$1" == "-h" ) then + set is_help=1 + else if ( "$1" == "-t" ) then + set is_tui=1 + else + set ckt=`echo ${modules} | grep -E "\<$1\>"` + if ( "$ckt" != "" ) then + set params="$params $1" + else + set b_params="$b_params $1" + echo "\!\!\! Warning \!\!\! Unknown module: $1." + endif + endif + shift +end + +######################################################### +# if -h option is given - print help info and exit +######################################################### +if ( $is_help == 1 ) then +echo "" +echo "" +echo "Description:" +echo " Builds given SALOME modules by performing make and make install commands" +echo "" +echo "Usage:" +echo " build.csh [