From 6aa08f2d3b4a3914684a6f2dd9236a3bb9cea344 Mon Sep 17 00:00:00 2001 From: Ovidiu Mircescu Date: Mon, 31 Mar 2014 15:50:28 +0200 Subject: [PATCH] Build script added for every example. --- Examples/build.sh | 21 +++++++++++++++++++++ Examples/calcium1/Makefile | 2 +- Examples/calcium1/build.sh | 3 +++ Examples/calcium2/Makefile | 2 +- Examples/calcium2/build.sh | 3 +++ Examples/clean.sh | 11 +++++++++++ Examples/cpp1/Makefile | 2 +- Examples/cpp1/build.sh | 1 + Examples/cpp2/Makefile | 2 +- Examples/cpp2/build.sh | 4 ++++ Examples/cppgui1/Makefile | 2 +- Examples/cppgui1/build.sh | 1 + Examples/fort1/Makefile | 2 +- Examples/fort1/build.sh | 3 +++ Examples/fort2/Makefile | 2 +- Examples/fort2/build.sh | 3 +++ Examples/hxx1/Makefile | 2 +- Examples/pydoc1/Makefile | 2 +- Examples/pydoc1/build.sh | 1 + Examples/pygui1/Makefile | 2 +- Examples/pygui1/build.sh | 1 + Examples/pyth1/Makefile | 2 +- Examples/pyth1/build.sh | 1 + Examples/pyth2/Makefile | 2 +- Examples/pyth2/build.sh | 1 + Examples/types1/Makefile | 2 +- Examples/types1/build.sh | 1 + 27 files changed, 68 insertions(+), 13 deletions(-) create mode 100755 Examples/build.sh create mode 100755 Examples/calcium1/build.sh create mode 100755 Examples/calcium2/build.sh create mode 100755 Examples/clean.sh create mode 100755 Examples/cpp1/build.sh create mode 100755 Examples/cpp2/build.sh create mode 100755 Examples/cppgui1/build.sh create mode 100755 Examples/fort1/build.sh create mode 100755 Examples/fort2/build.sh create mode 100755 Examples/pydoc1/build.sh create mode 100755 Examples/pygui1/build.sh create mode 100755 Examples/pyth1/build.sh create mode 100755 Examples/pyth2/build.sh create mode 100755 Examples/types1/build.sh diff --git a/Examples/build.sh b/Examples/build.sh new file mode 100755 index 0000000..caca301 --- /dev/null +++ b/Examples/build.sh @@ -0,0 +1,21 @@ +#/bin/bash +# build all examples + +cur_dir=`pwd` + +script_dir=`dirname $0` + +# activate stop on error +set -e + +cd $script_dir + +list_dirs="calcium1 calcium2 cpp1 cpp2 cppgui1 fort1 fort2 pydoc1 pygui1 pyth1 pyth2 types1 hxx1" +for dir in $list_dirs ; do + cd $dir + echo Building $dir ... "(see build.log & build.err)" + ./build.sh > build.log 2> build.err + cd .. +done + +echo Build finished! diff --git a/Examples/calcium1/Makefile b/Examples/calcium1/Makefile index a6ccdbb..bd8fd4a 100644 --- a/Examples/calcium1/Makefile +++ b/Examples/calcium1/Makefile @@ -27,4 +27,4 @@ code1.o:code1.f $(FC) -c code1.f -fPIC -I$(KERNEL_ROOT_DIR)/include/salome -fexceptions clean: - rm -rf *.o *.so install install.bak traceExec_proc appli appli.bak pycompos_SRC pycompos_SRC.bak pycompos_build pycompos_build.bak + rm -rf *.o *.so install traceExec_proc appli *.bak pycompos_* build.err build.log diff --git a/Examples/calcium1/build.sh b/Examples/calcium1/build.sh new file mode 100755 index 0000000..8a905e1 --- /dev/null +++ b/Examples/calcium1/build.sh @@ -0,0 +1,3 @@ +source ../exec.sh +make +python components.py diff --git a/Examples/calcium2/Makefile b/Examples/calcium2/Makefile index a6ccdbb..bd8fd4a 100644 --- a/Examples/calcium2/Makefile +++ b/Examples/calcium2/Makefile @@ -27,4 +27,4 @@ code1.o:code1.f $(FC) -c code1.f -fPIC -I$(KERNEL_ROOT_DIR)/include/salome -fexceptions clean: - rm -rf *.o *.so install install.bak traceExec_proc appli appli.bak pycompos_SRC pycompos_SRC.bak pycompos_build pycompos_build.bak + rm -rf *.o *.so install traceExec_proc appli *.bak pycompos_* build.err build.log diff --git a/Examples/calcium2/build.sh b/Examples/calcium2/build.sh new file mode 100755 index 0000000..8a905e1 --- /dev/null +++ b/Examples/calcium2/build.sh @@ -0,0 +1,3 @@ +source ../exec.sh +make +python components.py diff --git a/Examples/clean.sh b/Examples/clean.sh new file mode 100755 index 0000000..fa3620c --- /dev/null +++ b/Examples/clean.sh @@ -0,0 +1,11 @@ +#/bin/bash +script_dir=`dirname $0` +cd $script_dir + +list_dirs="calcium1 calcium2 cpp1 cpp2 cppgui1 fort1 fort2 pydoc1 pygui1 pyth1 pyth2 types1 hxx1" + +for dir in $list_dirs ; do + cd $dir + make clean + cd .. +done diff --git a/Examples/cpp1/Makefile b/Examples/cpp1/Makefile index 360fa5a..a3dda0e 100644 --- a/Examples/cpp1/Makefile +++ b/Examples/cpp1/Makefile @@ -18,4 +18,4 @@ # clean: - rm -rf *.o *.so cppcompos_SRC cppcompos_SRC.bak appli appli.bak install install.bak traceExec_proc cppcompos_build.bak cppcompos_build + rm -rf *.o *.so appli install *.bak traceExec_proc cppcompos_* build.err build.log diff --git a/Examples/cpp1/build.sh b/Examples/cpp1/build.sh new file mode 100755 index 0000000..8430376 --- /dev/null +++ b/Examples/cpp1/build.sh @@ -0,0 +1 @@ +../exec.sh python components.py diff --git a/Examples/cpp2/Makefile b/Examples/cpp2/Makefile index 7a56c68..e5cfcff 100644 --- a/Examples/cpp2/Makefile +++ b/Examples/cpp2/Makefile @@ -22,4 +22,4 @@ include ../makefile.inc prog:prog.cxx g++ -o prog prog.cxx -L./install/lib/salome -lcompo1Exelib -lSalomeIDLcppcompos clean: - rm -rf *.o prog install install.bak appli appli.bak cppcompos_SRC cppcompos_SRC.bak compo1_inst_1 traceExec_proc cppcompos_build cppcompos_build.bak + rm -rf *.o prog install appli *.bak compo1_inst_1 traceExec_proc cppcompos_* build.err build.log diff --git a/Examples/cpp2/build.sh b/Examples/cpp2/build.sh new file mode 100755 index 0000000..fb1f667 --- /dev/null +++ b/Examples/cpp2/build.sh @@ -0,0 +1,4 @@ +source ../exec.sh +python components.py +make + diff --git a/Examples/cppgui1/Makefile b/Examples/cppgui1/Makefile index 360fa5a..a734346 100644 --- a/Examples/cppgui1/Makefile +++ b/Examples/cppgui1/Makefile @@ -18,4 +18,4 @@ # clean: - rm -rf *.o *.so cppcompos_SRC cppcompos_SRC.bak appli appli.bak install install.bak traceExec_proc cppcompos_build.bak cppcompos_build + rm -rf *.o *.so cppcompos_* appli install *.bak traceExec_proc build.err build.log diff --git a/Examples/cppgui1/build.sh b/Examples/cppgui1/build.sh new file mode 100755 index 0000000..8430376 --- /dev/null +++ b/Examples/cppgui1/build.sh @@ -0,0 +1 @@ +../exec.sh python components.py diff --git a/Examples/fort1/Makefile b/Examples/fort1/Makefile index 62836c0..70eca4f 100644 --- a/Examples/fort1/Makefile +++ b/Examples/fort1/Makefile @@ -33,4 +33,4 @@ bidul.o:bidul.f $(FC) -c bidul.f -fPIC -I$(KERNEL_ROOT_DIR)/include/salome -fexceptions clean: - rm -rf *.o *.so fcompos_SRC install fcompos_SRC.bak traceExec_proc appli appli.bak install.bak fcompos_build fcompos_build.bak + rm -rf *.o *.so fcompos_* install appli traceExec_proc *.bak build.err build.log diff --git a/Examples/fort1/build.sh b/Examples/fort1/build.sh new file mode 100755 index 0000000..8a905e1 --- /dev/null +++ b/Examples/fort1/build.sh @@ -0,0 +1,3 @@ +source ../exec.sh +make +python components.py diff --git a/Examples/fort2/Makefile b/Examples/fort2/Makefile index 1e8c25b..ced9c90 100644 --- a/Examples/fort2/Makefile +++ b/Examples/fort2/Makefile @@ -33,4 +33,4 @@ code2.o:code2.f $(FC) -c code2.f -I$(KERNEL_ROOT_DIR)/include/salome -fexceptions clean: - rm -rf *.o prog1 prog2 fcode1_inst_1 fcode2_inst_1 fcompos_SRC install traceExec_proc install.bak fcompos_SRC.bak appli appli.bak fcompos_build.bak fcompos_build + rm -rf *.o prog1 prog2 fcode1_inst_1 fcode2_inst_1 fcompos_* install traceExec_proc *.bak appli build.err build.log diff --git a/Examples/fort2/build.sh b/Examples/fort2/build.sh new file mode 100755 index 0000000..66bd3c5 --- /dev/null +++ b/Examples/fort2/build.sh @@ -0,0 +1,3 @@ +source ../exec.sh +python components.py +make diff --git a/Examples/hxx1/Makefile b/Examples/hxx1/Makefile index 6bf9d52..5a16a4a 100644 --- a/Examples/hxx1/Makefile +++ b/Examples/hxx1/Makefile @@ -18,4 +18,4 @@ # clean: - rm -rf parse_* appli install hxxcompos_* COMPONENTCPP_* + rm -rf parse_* appli install hxxcompos_* COMPONENTCPP_* *.bak build.err build.log diff --git a/Examples/pydoc1/Makefile b/Examples/pydoc1/Makefile index d8bc261..a3df1cb 100644 --- a/Examples/pydoc1/Makefile +++ b/Examples/pydoc1/Makefile @@ -18,4 +18,4 @@ # clean: - rm -rf *.pyc pycompos_* appli appli.bak install install.bak traceExec_proc + rm -rf *.pyc pycompos_* appli install *.bak traceExec_proc build.err build.log diff --git a/Examples/pydoc1/build.sh b/Examples/pydoc1/build.sh new file mode 100755 index 0000000..8430376 --- /dev/null +++ b/Examples/pydoc1/build.sh @@ -0,0 +1 @@ +../exec.sh python components.py diff --git a/Examples/pygui1/Makefile b/Examples/pygui1/Makefile index 1ea1039..a3df1cb 100644 --- a/Examples/pygui1/Makefile +++ b/Examples/pygui1/Makefile @@ -18,4 +18,4 @@ # clean: - rm -rf *.pyc pycompos_SRC pycompos_SRC.bak appli appli.bak install install.bak traceExec_proc pycompos_build.bak pycompos_build + rm -rf *.pyc pycompos_* appli install *.bak traceExec_proc build.err build.log diff --git a/Examples/pygui1/build.sh b/Examples/pygui1/build.sh new file mode 100755 index 0000000..8430376 --- /dev/null +++ b/Examples/pygui1/build.sh @@ -0,0 +1 @@ +../exec.sh python components.py diff --git a/Examples/pyth1/Makefile b/Examples/pyth1/Makefile index 0567fc0..f7a10ea 100644 --- a/Examples/pyth1/Makefile +++ b/Examples/pyth1/Makefile @@ -18,4 +18,4 @@ # clean: - rm -rf *.o *.so *.pyc pycompos_SRC pycompos_SRC.bak appli appli.bak install install.bak traceExec_proc pycompos_build.bak pycompos_build + rm -rf *.o *.so *.pyc pycompos_* appli install *.bak traceExec_proc build.err build.log diff --git a/Examples/pyth1/build.sh b/Examples/pyth1/build.sh new file mode 100755 index 0000000..8430376 --- /dev/null +++ b/Examples/pyth1/build.sh @@ -0,0 +1 @@ +../exec.sh python components.py diff --git a/Examples/pyth2/Makefile b/Examples/pyth2/Makefile index fd8b894..aeeabe5 100644 --- a/Examples/pyth2/Makefile +++ b/Examples/pyth2/Makefile @@ -18,4 +18,4 @@ # clean: - rm -rf *.o *.so *.pyc pycompos_SRC pycompos_SRC.bak appli appli.bak install install.bak traceExec_proc compo2_inst_1 pycompos_build.bak pycompos_build + rm -rf *.o *.so *.pyc pycompos_* appli install *.bak traceExec_proc compo2_inst_1 build.err build.log diff --git a/Examples/pyth2/build.sh b/Examples/pyth2/build.sh new file mode 100755 index 0000000..8430376 --- /dev/null +++ b/Examples/pyth2/build.sh @@ -0,0 +1 @@ +../exec.sh python components.py diff --git a/Examples/types1/Makefile b/Examples/types1/Makefile index ebb51da..ffe9c05 100644 --- a/Examples/types1/Makefile +++ b/Examples/types1/Makefile @@ -18,4 +18,4 @@ # clean: - rm -rf *.o *.so *.bak mymodule_SRC mymodule_build appli install traceExec_* + rm -rf *.o *.so *.bak mymodule_* appli install *.bak traceExec_* build.err build.log diff --git a/Examples/types1/build.sh b/Examples/types1/build.sh new file mode 100755 index 0000000..8430376 --- /dev/null +++ b/Examples/types1/build.sh @@ -0,0 +1 @@ +../exec.sh python components.py -- 2.39.2