FR_BFAH_Install_Version="6.3" # Il s'agit du script d'installation de FAH BETA ("Folding At Home"). # Pour en savoir plus sur FAH, allez voir http://folding.stanford.edu. # # Pour executer ce script, Vous devez telecharger finstall, finstall.fr, # bfinstall.fr et utiliser la commande # 'chmod +x finstall finstall.fr bfinstall.fr; ./bfinstall.fr' ou # si le shell par defaut n'est pas Bash, utiliser # 'chmod +x finstall finstall.fr bfinstall.fr; bash -c "./bfinstall.fr"'. # # Lire ./finstall et ./finstall.fr pour savoir de quoi il s'agit. # # Cree par Ivo Sarak. Traduit par Nicolas Vervelle. # Envoyez Vos commentaires, aide et suggestions a ivo at vendomar.ee. # echo_file_not_found(){ cat << EOF Il n'y a pas de script '$1' dans le repertoire '$PWD'. EOF } echo_too_old_finstall(){ cat << EOF 'finstall' est pre1.2! EOF } echo_finstall_is_not_suitable(){ cat << EOF 'finstall', 'finstall.fr' et '$1' ne sont pas compatibles. EOF } Args=$@ if [ -r $PWD/finstall ]; then #Import 'finstall': . $PWD/finstall DoNothing >/dev/null else echo_file_not_found finstall exit 1 fi if [ -r $PWD/finstall.fr ]; then #Import 'finstall.fr': . $PWD/finstall.fr DoNothing >/dev/null else echo_file_not_found finstall.fr exit 1 fi FAH_Install_Greetings() { cat << EOF Il s'agit du script d'installation de BETA FAH ("Folding At Home") (ver. $FR_BFAH_Install_Version). Pour en savoir plus sur FAH, allez sur http://folding.stanford.edu. EOF } #Ou obtenir le client console FAH et ou le mettre: FAH_Settings(){ #Repertoire FAH: Fdir=foldingathome #Dernier client FAH: Fclient_linuxA_Fdwnl=http://www.stanford.edu/group/pandegroup/release/ Fclient_linuxA=FAH504-Linux.exe Fclient_linuxB_Fdwnl=http://www.stanford.edu/group/pandegroup/folding/release/ #Fclient_linuxB=FAH6.02-Linux.tgz Fclient_linuxB=FAH6.29-Linux.tgz Fclient_linuxB_name=fah6 Fclient_linuxA_SMP_Fdwnl=http://www.stanford.edu/group/pandegroup/folding/release/ #Fclient_linuxA_SMP=FAH6.02-Linux.tgz Fclient_linuxA_SMP=FAH6.29-Linux.tgz Fclient_linuxA_SMP_name=fah6 Fclient_win32_Fdwnl=http://www.stanford.edu/group/pandegroup/release/ Fclient_win32=FAH504-Console.exe Fclient_macosx_Fdwnl=http://www.stanford.edu/group/pandegroup/release/ Fclient_macosxA=FAH4-CLI.dmg Fclient_macosx_volume_nameA=FAH4-CLI Fclient_macosx_nameA=fah4 Fclient_macosxB=FAH5.02-CLI.dmg Fclient_macosx_volume_nameB=FAH5-CLI Fclient_macosx_nameB=fah5 Fclient_macosx_SMP_Fdwnl=http://www.stanford.edu/group/pandegroup/folding/release/ Fclient_macosx_SMP=FAH6.00beta1-OSX-Intel-Console.tgz Fclient_macosx_SMP_name=fah6 FdownWeb=http://folding.stanford.edu/download.html #FAH_default_flags="-verbosity 9" FAH_default_flags="-verbosity 9" } if [ $(echo $FAH_Install_Version | wc -w) -eq 0 ] ; then echo_too_old_finstall exit 1 else if [ $FR_BFAH_Install_Version = $FR_FAH_Install_Version -a $FR_FAH_Install_Version = $FAH_Install_Version ]; then CheckArg $Args if [ $? -eq 0 ]; then if [ "$DoNothing" != "true" ]; then #Installation du client BETA FAH: FAH_Install if [ $? -eq 0 ]; then #Positonnement de certains "flags" FAH: cd $Fdir if [ -r ./fah_config ]; then #Flags are already there, do not update these: echo -n else echo 'FAH_flags="-advmethods -forceasm"' > ./fah_config fi fi fi fi else echo_finstall_is_not_suitable $0 exit 1 fi fi #END.