Ajout de la version 2.0.2 de sphinx

This commit is contained in:
Damien LASSERRE 2011-12-08 08:33:02 +00:00
parent cc8e122575
commit 1ba2583ae5

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
allVersion=("2.0.1" "0.9.9") allVersion=("2.0.1" "0.9.9" "2.0.2")
declare -A ERREURS declare -A ERREURS
declare -A ASTUCES declare -A ASTUCES
@ -32,7 +32,7 @@ ASTUCES=(
function loadIndication() { function loadIndication() {
while [ -d "/proc/$1" ] while [ -d "/proc/$1" ]
do #Current PID in /proc | do #Current PID in /proc
echo -en "Loading... /\033[1G"; sleep .07 echo -en "Loading... /\033[1G"; sleep .07
echo -en "Loading... -\033[1G"; sleep .07 echo -en "Loading... -\033[1G"; sleep .07
echo -en "Loading... / \033[1G"; sleep .07 echo -en "Loading... / \033[1G"; sleep .07
@ -70,13 +70,15 @@ then
if [ ! -e /dbs/sphinxlog ];then `mkdir /dbs/sphinxlog`; fi if [ ! -e /dbs/sphinxlog ];then `mkdir /dbs/sphinxlog`; fi
if [ ! -e /init.d/sphinxsearch ];then `cp initscript/sphinxsearch /etc/init.d/ > /dev/null` ;`chmod +x /etc/init.d/sphinxsearch > /dev/null`; `update-rc.d sphinxsearch defaults > /dev/null`; fi if [ ! -e /init.d/sphinxsearch ];then `cp initscript/sphinxsearch /etc/init.d/ > /dev/null` ;`chmod +x /etc/init.d/sphinxsearch > /dev/null`; `update-rc.d sphinxsearch defaults > /dev/null`; fi
if [ ! -e config/${HOSTNAME} ];then `mkdir config/${HOSTNAME}`;fi if [ ! -e config/${HOSTNAME} ];then `mkdir config/${HOSTNAME}`;fi
if [ ! -e sphinx-2.0.1.tar.gz ] || [ ! -e sphinx-0.9.9.tar.gz ] if [ ! -e sphinx-2.0.1.tar.gz ] || [ ! -e sphinx-0.9.9.tar.gz ] || [ ! -e sphinx-2.0.2.tar.gz ]
then then
if [ ! -z $2 ]; then if [ ! -z $2 ]; then
if [ $2 == "2.0.1" ]; then if [ $2 == "2.0.1" ]; then
version="$2-beta" version="$2-beta"
elif [ $2 == "0.9.9" ]; then elif [ $2 == "0.9.9" ]; then
version="$2" version="$2-beta"
elif [ $2 == "2.0.2" ]; then
version="$2"
else else
echo -e $ROUGE"[Erreur]: This version not exist !"$NORMAL echo -e $ROUGE"[Erreur]: This version not exist !"$NORMAL
exit exit