sit/packages/compiler/pgi/pgi-13.2

80 lines
1.6 KiB
Bash
Executable file

#!/bin/sh
# sit class file
#
# Christoph Niethammer <niethammer@hlrs.de> (C) 2013
#
CATEGORY="compiler"
PACKAGE="pgi"
VERSION="13.2"
URL="http://www.pgroup.com/"
INSTALLER="Tünde Erdei <erdei@hlrs.de>"
# Archive A and package name P
A=pgilinux-2013-${VERSION/\./}.tar.gz
P=
BUILDDIR=$SRCDIR
src_build(){
/bin/true
}
src_install(){
expect - "$SRCDIR" <<EOF
spawn ./install
#set iid "\$spawn_id"
set timeout -1
send "q"
expect "\(accept,decline\)"
send "accept\r"
expect "Please choose install option:"
send "1\r"
expect "Installation directory\? "
send "$PREFIX\r"
expect "Install the ACML\? \(y/n\)"
send "y\r"
send "q"
expect "\(accept,decline\)"
send "accept\r"
expect "This PGI version links with ACML * by default. Also available:"
send "1\r"
expect "Install CUDA Toolkit Components\? \(y/n\)"
send "y\r"
#send "q"
#expect "\(accept,decline\)"
#send "accept\r"
#expect "Install OpenACC compilers\? \(y/n\)"
#send "y\r"
send "q"
expect "\(accept,decline\)"
send "accept\r"
# expect {
# -re "Install JAVA JRE 6.* \[yes\] " {puts "y\r"}
# timeout abort
# }
expect {
-re "Install JAVA JRE.*" {
puts "y\r"
send "q\r"
#expect "\(accept,decline\)"
#send "accept\r"
}
-re "Overwrite the installed JAVA JRE.*" {
send "no\r"
}
}
expect "Do you wish to update/create links in the 20* directory\? \(y/n\)"
send "y\r"
expect "Do you wish to install MPICH1\? \(y/n\)"
send "y\r"
expect "Remote execution method\? \(rsh,ssh\)"
send "ssh\r"
expect "Do you wish to generate license keys\? \(y/n\)"
send "n\r"
expect "Do you want the files in the install directory to be read-only\? \(y/n\)"
send "n\r"
expect eof
#wait \$spawn_id
EOF
}