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.
|
|
|
4 |
# Auteur : Jean-Pascal Milcent <jpm@tela-botanica.org> (translate bat file to shell script)
|
|
|
5 |
# License : GPL v3
|
|
|
6 |
# Création : 07 decembre 2011
|
|
|
7 |
# Version: 0.1
|
|
|
8 |
# 2011-12-07 - Création
|
|
|
9 |
# $Id$
|
|
|
10 |
##############################################################################################################
|
|
|
11 |
# Constante
|
|
|
12 |
APPDIR_ABSOLU=`pwd`;
|
|
|
13 |
#
|
51 |
jpm |
14 |
CHEMIN_PHP="/opt/lampp/bin"
|
183 |
jpm |
15 |
CHEMIN_TBF_CLI="$APPDIR_ABSOLU/scripts"
|
51 |
jpm |
16 |
MEMORY_LIMIT="3500M"
|
354 |
jpm |
17 |
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 |
18 |
echo "Nettoyage et chargement en cours...";
|
371 |
mathilde |
19 |
echo "BASEFLOR :";
|
|
|
20 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php baseflor -a supprimerTous
|
434 |
jpm |
21 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php baseflor -a chargerTous
|
371 |
mathilde |
22 |
echo "BIBLIO_BOTA :";
|
|
|
23 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php biblio_bota -a supprimerTous
|
|
|
24 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php biblio_bota -a chargerTous
|
130 |
jpm |
25 |
echo "BDNT :";
|
|
|
26 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php bdnt -a supprimerTous
|
87 |
jpm |
27 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php bdnt -a chargerTous
|
250 |
jpm |
28 |
echo "BDTFX :";
|
|
|
29 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php bdtfx -a supprimerTous
|
|
|
30 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php bdtfx -a chargerTous
|
|
|
31 |
echo "CHORODEP :";
|
|
|
32 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php chorodep -a supprimerTous
|
|
|
33 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php chorodep -a chargerTous
|
382 |
delphine |
34 |
echo "COSTE :";
|
|
|
35 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php coste -a supprimerTous
|
|
|
36 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php coste -a chargerTous
|
489 |
jpm |
37 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php coste -a chargerTxt
|
|
|
38 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php coste -a chargerIndex
|
177 |
jpm |
39 |
echo "EFLORE :";
|
|
|
40 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php eflore -a supprimerTous
|
|
|
41 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php eflore -a chargerTous
|
130 |
jpm |
42 |
echo "INSEE-D :";
|
|
|
43 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php insee_d -a supprimerTous
|
51 |
jpm |
44 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php insee_d -a chargerTous
|
250 |
jpm |
45 |
echo "ISO-3166-1 :";
|
|
|
46 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php iso_3166_1 -a supprimerTous
|
|
|
47 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php iso_3166_1 -a chargerTous
|
130 |
jpm |
48 |
echo "ISO-639-1 :";
|
|
|
49 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php iso_639_1 -a supprimerTous
|
73 |
jpm |
50 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php iso_639_1 -a chargerTous
|
130 |
jpm |
51 |
echo "NVJFL :";
|
|
|
52 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php nvjfl -a supprimerTous
|
125 |
jpm |
53 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php nvjfl -a chargerTous
|
309 |
aurelien |
54 |
echo "PHOTOFLORA :";
|
|
|
55 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php photoflora -a supprimerTous
|
|
|
56 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php photoflora -a chargerTous
|
354 |
jpm |
57 |
echo "CEL :";
|
|
|
58 |
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"
|
|
|
59 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php cel -a supprimerTous
|
|
|
60 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php cel -a chargerTous
|
323 |
delphine |
61 |
echo "TAPIRLINK :";
|
354 |
jpm |
62 |
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 |
63 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php tapirlink -a supprimerTous
|
371 |
mathilde |
64 |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php tapirlink -a chargerTous
|
|
|
65 |
|
|
|
66 |
|