NL_BFAH_Install_Version="6.3" # Dit is het BETA FAH ("Folding At Home") installatie script. # Om meer te weten te komen over FAH, ga naar http://folding.stanford.edu. # # Om dit script uit te voeren, moet je finstall, finstall.nl & bfinstall.nl # downloaden, en gebruik het commando # 'chmod +x finstall finstall.nl; ./finstall.nl' of indien de standaard shell # geen Bash is, gebruik # 'chmod +x finstall finstall.nl; bash -c "./finstall.nl"'. # # Lees ./finstall en finstall.nl om meer te weten te komen waar het allemaal # over gaat. # # Gebouwd door Ivo Sarak. Vertaald door Bas Couwenberg # Stuur je opmerkingen, hulp en suggesties naar iva at vendomar.ee. # # ChangeLog for bfinstall.nl: # # v0.2: "te weten to komen" -> "te weten te komen" # # v0.1: initial release # echo_file_not_found(){ cat << EOF Er is geen '$1' script in de map '$PWD'. EOF } echo_too_old_finstall(){ cat << EOF 'finstall' is te oud, nog voor versie 1.2! EOF } echo_finstall_is_not_suitable(){ cat << EOF 'finstall', 'finstall.nl' en '$1' gaan niet samen. 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.nl ]; then #Import 'finstall.nl': . $PWD/finstall.nl DoNothing >/dev/null else echo_file_not_found finstall.nl exit 1 fi FAH_Install_Greetings() { cat << EOF Dit is het BETA FAH ("Folding At Home") installatie script (ver. $NL_FAH_Install_Version). Om meer te weten te komen over FAH, ga naar 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.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 [ $NL_BFAH_Install_Version = $NL_FAH_Install_Version -a $NL_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.