EE_BFAH_Install_Version="6.3" # See on BETA FAH ("Folding At Home") paigaldamise skript. # T2psemat infot FAH'i kohta saad kylastades http://folding.stanford.edu. # # Selle skripti k2ivitamiseks lae alla skriptid bfinstall, finstall, # finstall.ee ja bfinstall.ee ning kasuta k2sku # 'chmod +x finstall finstall.ee bfinstall.ee; ./bfinstall.ee' # vo~i juhul kui vaikimisi m22ratud shell ei ole Bash, siis kirjuta # 'chmod +x finstall finstall.ee bfinstall.ee; bash -c "./bfinstall.ee"'. # # T2psemat infot finstall/finstall.ee'i kohta leiad neist skriptidest endist. # # Koostaja Ivo Sarak. T6lkinud Ivo Sarak. # Kommentaarid jms saab saata ivo at vendomar.ee. # echo_file_not_found(){ cat << EOF Ei leidnud '$1' skripti '$PWD' kataloogis. EOF } echo_too_old_finstall(){ cat << EOF 'finstall' on vanem kui pre1.2! EOF } echo_finstall_is_not_suitable(){ cat << EOF 'finstall', 'finstall.ee' ja '$1' ei sobi kokku. 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.ee ]; then #Import 'finstall.ee': . $PWD/finstall.ee DoNothing >/dev/null else echo_file_not_found finstall.ee exit 1 fi #Paigalduse tervitustekst: FAH_Install_Greetings() { cat << EOF See on FAH ("Folding At Home") paigaldamise skript. (ver. $EE_BFAH_Install_Version). T2psemat infot FAHi kohta saad kui kylastad http://folding.stanford.edu. EOF } #Kus kohast saab FAH kliendi ning kuhu see paigaldada: FAH_Settings(){ #FAH directory: Fdir=foldingathome #Latest FAH client: 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 [ $EE_BFAH_Install_Version = $EE_FAH_Install_Version -a $EE_FAH_Install_Version = $FAH_Install_Version ]; then CheckArg $Args if [ $? -eq 0 ]; then if [ "$DoNothing" != "true" ]; then #Install BETA FAH client: FAH_Install if [ $? -eq 0 ]; then #Set some FAH "flags": 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.