UK_BFAH_Install_Version="6.3" # 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 finstall, finstall.uk, # bfinstall.uk and use command # 'chmod +x finstall finstall.uk bfinstall.uk; ./bfinstall.uk' or # if the default shell is not Bash, use # 'chmod +x finstall finstall.uk bfinstall.uk; bash -c "./bfinstall.uk"'. # # Read ./finstall and ./finstall.uk to get to know what these are all about. # # Constructed by Ivo Sarak. Translated by Ivo Sarak. # Send Your comments, help and suggestions to ivo at vendomar.ee. # echo_file_not_found(){ cat << EOF There is no '$1' script in '$PWD' directory. EOF } echo_too_old_finstall(){ cat << EOF 'finstall' is pre1.2! EOF } echo_finstall_is_not_suitable(){ cat << EOF 'finstall', 'finstall.uk' and '$1' are incompatible. 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.uk ]; then #Import 'finstall.uk': . $PWD/finstall.uk DoNothing >/dev/null else echo_file_not_found finstall.uk exit 1 fi FAH_Install_Greetings() { cat << EOF This is BETA FAH ("Folding At Home") installation script (ver. $UK_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_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.92-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 [ $UK_BFAH_Install_Version = $UK_FAH_Install_Version -a $UK_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.