#!/bin/bash clear echo echo "Which compiler you want to use to compile the external packages?" PS3='Please enter a choice from the above menu: ' select CHOICE in "GCC (Linux, Solaris and Mac OSX)" "Intel Compiler (Linux)" "CC (Solaris)" Quit do case "$CHOICE" in Quit) exit ;; "GCC (Linux, Solaris and Mac OSX)") compiler=gcc break ;; "Intel Compiler (Linux)") compiler=intel break ;; "CC (Solaris)") compiler=CC break ;; "") echo This value is not valid. Hit Enter to see menu again! continue ;; esac done clear echo echo "Do you want to compile the external packages with or without debug" echo "information or with optimization?" PS3='Please enter a choice from the above menu: ' select CHOICE in "No Debug Info" "Debug Info" "Optimize" Quit do case "$CHOICE" in Quit) exit ;; "No Debug Info") debug=no optimize=no break ;; "Debug Info") debug=yes optimize=no break ;; "Optimize") debug=no optimize=yes break ;; "") echo This value is not valid. Hit Enter to see menu again! continue ;; esac done clear echo echo "Would you like to install the additionally available data files" echo "the GEANT4 package?" echo "To do so you need either a internet conection (Internet) or you" echo "have to provide the files in the transport subdirectory (Directory)." PS3='Please enter a choice from the above menu: ' select CHOICE in "Don't install" "Internet" "Directory" Quit do case "$CHOICE" in Quit) exit ;; "Don't install") geant4_data_files=no geant4_get_data=no break ;; "Internet") geant4_data_files=yes geant4_get_data=yes break ;; "Directory") geant4_data_files=yes geant4_get_data=no break ;; "") echo This value is not valid. Hit Enter to see menu again! continue ;; esac done