Last change
on this file since 222 was
222,
checked in by hozdoba, 13 years ago
|
|
-
Property svn:executable set to
*
|
File size:
1.2 KB
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | install_dir=$PWD |
---|
4 | |
---|
5 | # Traitement de la ligne de commande |
---|
6 | while (($# > 0)) |
---|
7 | do |
---|
8 | case $1 in |
---|
9 | "-h") |
---|
10 | # A modifier |
---|
11 | exit;; |
---|
12 | |
---|
13 | "--prod") compil_mode="prod" ; shift ;; |
---|
14 | "--dev") compil_mode="dev" ; shift ;; |
---|
15 | "--debug") compil_mode="debug" ; shift ;; |
---|
16 | "--arch") arch=$2 ; shift ; shift ;; |
---|
17 | *) code="$1" ; shift ;; |
---|
18 | esac |
---|
19 | done |
---|
20 | |
---|
21 | if [[ !(-z $arch) ]] |
---|
22 | then |
---|
23 | rm -f arch.path |
---|
24 | rm -f arch.fcm |
---|
25 | ln -s arch/arch-${arch}.path ./arch.path |
---|
26 | ln -s arch/arch-${arch}.fcm ./arch.fcm |
---|
27 | source arch.path |
---|
28 | else |
---|
29 | echo "Veuillez definir une architecture cible !" |
---|
30 | exit 1 |
---|
31 | fi |
---|
32 | |
---|
33 | echo "=> Activation du mode "$compil_mode" pour la distribution sous l'architecture \""$arch"\" !" |
---|
34 | |
---|
35 | # Décompression des bibliothÚques externes. |
---|
36 | cd $install_dir/extern |
---|
37 | echo -e "- Décompression des bibliothÚques externes ..." |
---|
38 | tar -xzvf boost.tar.gz >/dev/null |
---|
39 | tar -xzvf rapidxml.tar.gz >/dev/null |
---|
40 | cd $install_dir |
---|
41 | |
---|
42 | # Décompression des outils de compilation. |
---|
43 | cd $install_dir/tools |
---|
44 | echo -e "- Décompression des outils de compilation ..." |
---|
45 | tar -xzvf FCM.tar.gz >/dev/null |
---|
46 | cd $install_dir |
---|
47 | |
---|
48 | |
---|
Note: See
TracBrowser
for help on using the repository browser.