machines.sh 663 Bytes
Newer Older
1 2
#This file contains the defaults for compiling FLEUR on known machines

Daniel Wortmann's avatar
Daniel Wortmann committed
3 4 5 6 7 8 9 10 11 12 13 14 15
cd $DIR/cmake/machines/
for f in *.sh
do
  config=`basename $f .sh`
  desc=`head -1 $f|cut -d# -f 2`
  if [ ! "$desc" == "NOSHOW" ]
  then
  known_machines="$known_machines
  $config
       -- $desc "
  fi
done
cd -
16 17

function configure_machine(){
18
    if [ "$machine" = "AUTO" ] 
19
    then
20 21
     	echo "No machine specific settings used"
	echo "GOOD LUCK!"
22
    else
23
	if [ -r $DIR/cmake/machines/$machine.sh ]
24
	then
25 26
	    echo "Using config for: $machine"
	    . $DIR/cmake/machines/$machine.sh
27 28 29
	else
	    echo "No valid machine configuration specified"
	    exit
30
	fi  
31 32 33
    fi
}

34 35 36 37 38 39