summarylogtreecommitdiffstats
path: root/petsc.install
blob: 061fa062d5f217bb62a578b17b4f9869ade7a75c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
post_install() {

# set the PETSC_DIR
source /etc/profile.d/petsc.sh
export PETSC_DIR=${PETSC_DIR}
#export PETSC_ARCH=${PETSC_ARCH}

noVersion=${1%%-[1-9]}
rootDir=${noVersion/_/-}

cat << EOF

If you just ran makepkg in this directory then
to test the PETSc installation you can run:

$ cd src/petsc-${rootDir}/; make PETSC_DIR=$PETSC_DIR test

EOF
}

post_upgrade() {
post_install
}

# vim:set ts=2 sw=2 et: