BFAH_Install_Version="6.4" # This is BETA FAH ("Folding At Home") installation script. # To get to know more about FAH go to http://folding.stanford.edu. # # To run this script You should download bfinstall & finstall and use command # 'chmod +x bfinstall finstall; ./bfinstall' or if the default shell is not # Bash, use 'chmod +x bfinstall finstall; bash -c "./bfinstall"'. # # Read ./finstall to get to know what it is all about. # # Constructed by Ivo Sarak. # Send Your comments, help and suggestions to ivo at vendomar.ee. # echo_no_finstall(){ cat << EOF There is no 'finstall' script in '$PWD' directory. EOF } echo_too_old_finstall(){ cat << EOF 'finstall' is pre1.2! EOF } echo_finstall_is_not_suitable(){ cat << EOF 'finstall' and '$0' are incompatible. EOF } Arguments=$@ if [ -r $PWD/finstall ]; then #Import 'finstall': . $PWD/finstall DoNothing >/dev/null else echo_no_finstall exit 1 fi #Redefine some functions to make these "BETA" compatible... FAH_Install_Greetings() { cat << EOF This is BETA FAH ("Folding At Home") installation script (ver. $BFAH_Install_Version). To get to know more about FAH, go to http://folding.stanford.edu. EOF } #Where to get FAH console client & where to place it: 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=FAH6.34-Linux64.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=FAH6.34-Linux64.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.00beta2-OSX-Intel-Console.tgz Fclient_macosx_SMP_name=fah6 FdownWeb=http://folding.stanford.edu/download.html #FAH_default_flags="-verbosity 9" FAH_default_flags="" } if [ $(echo $FAH_Install_Version | wc -w) -eq 0 ] ; then echo_too_old_finstall exit 1 else if [ $BFAH_Install_Version = $FAH_Install_Version ]; then CheckArg $Arguments 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 exit 1 fi fi #END.