sit/packages/compiler/pgi/pgi-13.2

81 lines
1.6 KiB
Groff
Raw Permalink Normal View History

2013-02-26 11:19:41 +00:00
#!/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>"
2013-02-26 11:19:41 +00:00
# Archive A and package name P
A=pgilinux-2013-${VERSION/\./}.tar.gz
P=
BUILDDIR=$SRCDIR
2013-03-01 10:32:40 +00:00
src_build(){
/bin/true
}
src_install(){
2013-02-26 11:19:41 +00:00
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
}