1 | #!/bin/bash |
---|
2 | |
---|
3 | #Copyright or © or Copr. Abdouramane MAYAKI |
---|
4 | # |
---|
5 | #mail of the author: mayakiyerima@yahoo.fr |
---|
6 | # |
---|
7 | #This software is a framework for variational data assimilation in |
---|
8 | #numerical models. |
---|
9 | # |
---|
10 | #This software is governed by the CeCILL license under French law and |
---|
11 | #abiding by the rules of distribution of free software. You can use, |
---|
12 | #modify and/ or redistribute the software under the terms of the CeCILL |
---|
13 | #license as circulated by CEA, CNRS and INRIA at the following URL |
---|
14 | #"http://www.cecill.info". |
---|
15 | # |
---|
16 | #As a counterpart to the access to the source code and rights to copy, |
---|
17 | #modify and redistribute granted by the license, users are provided only |
---|
18 | #with a limited warranty and the software's author, the holder of the |
---|
19 | #economic rights, and the successive licensors have only limited |
---|
20 | #liability. |
---|
21 | # |
---|
22 | #In this respect, the user's attention is drawn to the risks associated |
---|
23 | #with loading, using, modifying and/or developing or reproducing the |
---|
24 | #software by the user in light of its specific status of free software, |
---|
25 | #that may mean that it is complicated to manipulate, and that also |
---|
26 | #therefore means that it is reserved for developers and experienced |
---|
27 | #professionals having in-depth computer knowledge. Users are therefore |
---|
28 | #encouraged to load and test the software's suitability as regards their |
---|
29 | #requirements in conditions enabling the security of their systems and/or |
---|
30 | #data to be ensured and, more generally, to use and operate it in the |
---|
31 | #same conditions as regards security. |
---|
32 | # |
---|
33 | #The fact that you are presently reading this means that you have had |
---|
34 | #knowledge of the CeCILL license and that you accept its terms. |
---|
35 | # |
---|
36 | |
---|
37 | # |
---|
38 | THEPATH=$PWD |
---|
39 | # |
---|
40 | |
---|
41 | echo "Phase 1: Compilation de la grammaire de Yao." |
---|
42 | cd .. |
---|
43 | echo "Dans le répertoire: $PWD" |
---|
44 | mv main.cpp main.save |
---|
45 | cp interface/help/VisualMain.txt main.cpp |
---|
46 | make |
---|
47 | #make install |
---|
48 | mv Yao9Generator interface/ |
---|
49 | mv main.save main.cpp |
---|
50 | make |
---|
51 | make install |
---|
52 | echo "Compilation de la grammaire terminée." |
---|
53 | echo "Dans le répertoire: $PWD" |
---|
54 | echo "export VYAO=$THEPATH" >> $HOME/.bashrc |
---|
55 | echo 'export PATH=$PATH:$VYAO' >> $HOME/.bashrc |
---|
56 | cd - |
---|
57 | #echo "Phase 2: Compilation de Visual Yao." |
---|
58 | #qmake -project && qmake && make |
---|
59 | #sed -i -e '14c CFLAGS = -pipe ' Makefile |
---|
60 | #sed -i -e '15c CXXFLAGS = -pipe ' Makefile |
---|
61 | #sed -i -e '16c INCPATH = -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include -I. -Isrc/include -I. -I../../share/antlr-2.7.7/lib/cpp/ -I../../share/boost_1_39_0/ -I.' Makefile |
---|
62 | #make && clear && echo "Compilation terminée. Vous pouvez maintenant lancer l'interface graphique (./interface)." |
---|
63 | #$SHELL |
---|
64 | #make |
---|