1#!/bin/sh 2# 3# This script makes a Apple Mac OS X installer for PETSc, it uses arch-osx-release.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 11rm -rf arch-osx-debug 12./systems/Apple/osx/bin/arch-osx-debug.py 13make all test 14./systems/Apple/osx/bin/makeframework debug 15 16export PETSC_ARCH=arch-osx-release 17rm -rf arch-osx-release 18./systems/Apple/osx/bin/arch-osx-release.py 19make all test 20./systems/Apple/osx/bin/makeframework release 21 22export LOC=$PETSC_DIR 23make alldoc 24make allman 25./systems/Apple/osx/bin/makedocs 26 27./systems/Apple/osx/bin/makedmg 28 29echo "To use the PETSc.framework in examples either run the installer ${PETSC_DIR}/PETSc-OSX.dmg" 30echo " or sudo cp -r ${PETSC_DIR}/arch-osx-release/PETSc-OSX /Library/Frameworks" 31echo " and sudo cp -r ${PETSC_DIR}/arch-osx-debug/PETSc-OSX /Library/Frameworks" 32 33 34 35 36