]> SALOME platform Git repositories - tools/yacsgen.git/commitdiff
Salome HOME
Build script added for every example.
authorOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Mon, 31 Mar 2014 13:50:28 +0000 (15:50 +0200)
committerOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Mon, 31 Mar 2014 13:50:28 +0000 (15:50 +0200)
27 files changed:
Examples/build.sh [new file with mode: 0755]
Examples/calcium1/Makefile
Examples/calcium1/build.sh [new file with mode: 0755]
Examples/calcium2/Makefile
Examples/calcium2/build.sh [new file with mode: 0755]
Examples/clean.sh [new file with mode: 0755]
Examples/cpp1/Makefile
Examples/cpp1/build.sh [new file with mode: 0755]
Examples/cpp2/Makefile
Examples/cpp2/build.sh [new file with mode: 0755]
Examples/cppgui1/Makefile
Examples/cppgui1/build.sh [new file with mode: 0755]
Examples/fort1/Makefile
Examples/fort1/build.sh [new file with mode: 0755]
Examples/fort2/Makefile
Examples/fort2/build.sh [new file with mode: 0755]
Examples/hxx1/Makefile
Examples/pydoc1/Makefile
Examples/pydoc1/build.sh [new file with mode: 0755]
Examples/pygui1/Makefile
Examples/pygui1/build.sh [new file with mode: 0755]
Examples/pyth1/Makefile
Examples/pyth1/build.sh [new file with mode: 0755]
Examples/pyth2/Makefile
Examples/pyth2/build.sh [new file with mode: 0755]
Examples/types1/Makefile
Examples/types1/build.sh [new file with mode: 0755]

diff --git a/Examples/build.sh b/Examples/build.sh
new file mode 100755 (executable)
index 0000000..caca301
--- /dev/null
@@ -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!
index a6ccdbbede22d7c5398e2897d4263ae971fb2fea..bd8fd4a2b5eba676b83446f7a1e54b8060d1af24 100644 (file)
@@ -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 (executable)
index 0000000..8a905e1
--- /dev/null
@@ -0,0 +1,3 @@
+source ../exec.sh
+make
+python components.py
index a6ccdbbede22d7c5398e2897d4263ae971fb2fea..bd8fd4a2b5eba676b83446f7a1e54b8060d1af24 100644 (file)
@@ -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 (executable)
index 0000000..8a905e1
--- /dev/null
@@ -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 (executable)
index 0000000..fa3620c
--- /dev/null
@@ -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
index 360fa5a711b593a8a5c974a08695811e5af77933..a3dda0e00c66ef6236f2f342bb05850bb7ed82e4 100644 (file)
@@ -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 (executable)
index 0000000..8430376
--- /dev/null
@@ -0,0 +1 @@
+../exec.sh python components.py
index 7a56c680f977c00f5bb431178fc8761d0245fd52..e5cfcffac2cf4d487816999927e4e225592c5123 100644 (file)
@@ -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 (executable)
index 0000000..fb1f667
--- /dev/null
@@ -0,0 +1,4 @@
+source ../exec.sh
+python components.py
+make
+
index 360fa5a711b593a8a5c974a08695811e5af77933..a734346fe679b161990f7935171b7f47aac41860 100644 (file)
@@ -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 (executable)
index 0000000..8430376
--- /dev/null
@@ -0,0 +1 @@
+../exec.sh python components.py
index 62836c0c2c3e59ce139053ef2cce22c4845f2df4..70eca4f5b262dba408c0c695ab5fcc38fe5c8db1 100644 (file)
@@ -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 (executable)
index 0000000..8a905e1
--- /dev/null
@@ -0,0 +1,3 @@
+source ../exec.sh
+make
+python components.py
index 1e8c25b5b36edabb2507332cb3386df3305b00ff..ced9c905c3167fed4108f948703229487e4eda6b 100644 (file)
@@ -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 (executable)
index 0000000..66bd3c5
--- /dev/null
@@ -0,0 +1,3 @@
+source ../exec.sh
+python components.py
+make
index 6bf9d5296793d0064a499cdba069bc538c3b76c2..5a16a4a66fd7b89c441db0ce9950bdf1dbae1a5b 100644 (file)
@@ -18,4 +18,4 @@
 #
 
 clean:
-       rm -rf parse_* appli install hxxcompos_* COMPONENTCPP_* 
+       rm -rf parse_* appli install hxxcompos_* COMPONENTCPP_* *.bak build.err build.log
index d8bc261e66ad277abb4f65f7607e07806622aea6..a3df1cbfafc2d6cc7ca3f017a55ddaf361a8f7a7 100644 (file)
@@ -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 (executable)
index 0000000..8430376
--- /dev/null
@@ -0,0 +1 @@
+../exec.sh python components.py
index 1ea10390a0542d34202bbb1489516150999047b7..a3df1cbfafc2d6cc7ca3f017a55ddaf361a8f7a7 100644 (file)
@@ -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 (executable)
index 0000000..8430376
--- /dev/null
@@ -0,0 +1 @@
+../exec.sh python components.py
index 0567fc07ed6d2dfa586ff17f5bef0c446f4f526e..f7a10ea86c0d8eb99c5a9afbecfc2caa902f673b 100644 (file)
@@ -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 (executable)
index 0000000..8430376
--- /dev/null
@@ -0,0 +1 @@
+../exec.sh python components.py
index fd8b8946a896035b5c6d82761b5b9b5ab1598372..aeeabe544f4837e7e06403ca8359ba7f6fcd3e85 100644 (file)
@@ -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 (executable)
index 0000000..8430376
--- /dev/null
@@ -0,0 +1 @@
+../exec.sh python components.py
index ebb51da6b6c60dc6ab0578ceade93921c3f7cec7..ffe9c05ece8558d4f5a7544c4043688da7399c28 100644 (file)
@@ -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 (executable)
index 0000000..8430376
--- /dev/null
@@ -0,0 +1 @@
+../exec.sh python components.py