1#!/bin/sh 2# 3# This script makes a Apple Mac OS X installer for PETSc, it uses arch-osx.py, arch-osx-debug.py, makeframework, makedocs, makedmg 4# 5# Run from the root PETSc directory 6# 7# See ./makeframework on how to use the framework: 8# 9# 10export PETSC_ARCH=arch-osx-debug 11./systems/Apple/osx/bin/arch-osx-debug.py 12make all test 13 14export PETSC_ARCH=arch-osx 15./systems/Apple/osx/bin/arch-osx.py 16make all test 17./systems/Apple/osx/bin/makeframework 18 19export LOC=$PETSC_DIR 20make alldoc 21./systems/Apple/osx/bin/makedocs 22 23./systems/Apple/osx/bin/makedmg 24 25echo "To use the PETSc.framework in examples either run the installer ${PETSC_DIR}/${PETSC_ARCH}/PETSc.dmg" 26echo " or sudo cp -r ${PETSC_DIR}/${PETSC_ARCH}/PETSc /Library/Frameworks" 27 28 29 30 31