51 |
jpm |
1 |
#!/bin/bash
|
183 |
jpm |
2 |
##############################################################################################################
|
|
|
3 |
# But : Script permettant d'initialiser en une seule commande l'ensemble de la base de données eFlore.
|
668 |
jpm |
4 |
# Auteur : Jean-Pascal Milcent <jpm@tela-botanica.org> (translate bat file to shell script)
|
|
|
5 |
# Exemple : /opt/lampp/bin/php -d memory_limit=3500M ./cli.php bdtxa -a supprimerTous
|
183 |
jpm |
6 |
# License : GPL v3
|
|
|
7 |
# Création : 07 decembre 2011
|
|
|
8 |
# Version: 0.1
|
|
|
9 |
# 2011-12-07 - Création
|
|
|
10 |
# $Id$
|
|
|
11 |
##############################################################################################################
|
|
|
12 |
# Constante
|
|
|
13 |
APPDIR_ABSOLU=`pwd`;
|
|
|
14 |
#
|
51 |
jpm |
15 |
CHEMIN_PHP="/opt/lampp/bin"
|
183 |
jpm |
16 |
CHEMIN_TBF_CLI="$APPDIR_ABSOLU/scripts"
|
51 |
jpm |
17 |
MEMORY_LIMIT="3500M"
|
354 |
jpm |
18 |
echo -e "\033[31m`tput blink`ATTENTION :`tput sgr0` Nécessite la création préalable de la base de données \033[31mtb_eflore\033[00m"
|
130 |
jpm |
19 |
echo "Nettoyage et chargement en cours...";
|
371 |
mathilde |
20 |
echo "BASEFLOR :";
|
|
|
21 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php baseflor -a supprimerTous
|
434 |
jpm |
22 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php baseflor -a chargerTous
|
675 |
jpm |
23 |
echo "BASEVEG :";
|
|
|
24 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php baseveg -a supprimerTous
|
|
|
25 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php baseveg -a chargerTous
|
130 |
jpm |
26 |
echo "BDNT :";
|
|
|
27 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php bdnt -a supprimerTous
|
87 |
jpm |
28 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php bdnt -a chargerTous
|
250 |
jpm |
29 |
echo "BDTFX :";
|
|
|
30 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php bdtfx -a supprimerTous
|
|
|
31 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php bdtfx -a chargerTous
|
668 |
jpm |
32 |
echo "BDTXA :";
|
|
|
33 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php bdtxa -a supprimerTous
|
|
|
34 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php bdtxa -a chargerTous
|
675 |
jpm |
35 |
echo "BIBLIO_BOTA :";
|
|
|
36 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php biblio_bota -a supprimerTous
|
|
|
37 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php biblio_bota -a chargerTous
|
|
|
38 |
# echo "BONNIER :";
|
|
|
39 |
# Pas encore utilisé !
|
250 |
jpm |
40 |
echo "CHORODEP :";
|
|
|
41 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php chorodep -a supprimerTous
|
|
|
42 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php chorodep -a chargerTous
|
382 |
delphine |
43 |
echo "COSTE :";
|
|
|
44 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php coste -a supprimerTous
|
|
|
45 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php coste -a chargerTous
|
489 |
jpm |
46 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php coste -a chargerTxt
|
|
|
47 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php coste -a chargerIndex
|
177 |
jpm |
48 |
echo "EFLORE :";
|
|
|
49 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php eflore -a supprimerTous
|
|
|
50 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php eflore -a chargerTous
|
675 |
jpm |
51 |
# echo "FOURNIER :";
|
|
|
52 |
# Pas encore utilisé !
|
130 |
jpm |
53 |
echo "INSEE-D :";
|
|
|
54 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php insee_d -a supprimerTous
|
51 |
jpm |
55 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php insee_d -a chargerTous
|
250 |
jpm |
56 |
echo "ISO-3166-1 :";
|
|
|
57 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php iso_3166_1 -a supprimerTous
|
|
|
58 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php iso_3166_1 -a chargerTous
|
130 |
jpm |
59 |
echo "ISO-639-1 :";
|
|
|
60 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php iso_639_1 -a supprimerTous
|
73 |
jpm |
61 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php iso_639_1 -a chargerTous
|
130 |
jpm |
62 |
echo "NVJFL :";
|
|
|
63 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php nvjfl -a supprimerTous
|
125 |
jpm |
64 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php nvjfl -a chargerTous
|
675 |
jpm |
65 |
echo "NVPS :";
|
|
|
66 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php nvps -a supprimerTous
|
|
|
67 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php nvps -a chargerTous
|
309 |
aurelien |
68 |
echo "PHOTOFLORA :";
|
|
|
69 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php photoflora -a supprimerTous
|
|
|
70 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php photoflora -a chargerTous
|
675 |
jpm |
71 |
# echo "PROMETHEUS :";
|
|
|
72 |
# Ontologie botanique.
|
|
|
73 |
# Pas encore utilisé !
|
|
|
74 |
echo "SPTB :";
|
|
|
75 |
# Statut de protection Tela Botanica
|
|
|
76 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php sptb -a supprimerTous
|
|
|
77 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php sptb -a chargerTous
|
354 |
jpm |
78 |
echo "CEL :";
|
|
|
79 |
echo -e "\033[31m`tput blink`ATTENTION :`tput sgr0` Nécessite la création préalable de la base de données \033[31mtb_cel\033[00m"
|
|
|
80 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php cel -a supprimerTous
|
|
|
81 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php cel -a chargerTous
|
323 |
delphine |
82 |
echo "TAPIRLINK :";
|
354 |
jpm |
83 |
echo -e "\033[31m`tput blink`ATTENTION :`tput sgr0` Nécessite la création préalable de la base de données \033[31mtb_hit_indexation\033[00m"
|
323 |
delphine |
84 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php tapirlink -a supprimerTous
|
371 |
mathilde |
85 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php tapirlink -a chargerTous
|
|
|
86 |
|
|
|
87 |
|