1#!/bin/sh 2# 3# This script makes a Apple iOS installer for PETSc, it uses arch-osx-simulator.py, makeframework, makedocs, makedmg 4# 5# Run from the root PETSc directory 6# 7# See ./makeframework on how to use the framework: 8# 9# 10if [ ! -f include/petscversion.h ]; then 11 echo "Could not locate include/petscversion.h! Please invoke this script from top level PETSc source dir" 12 exit 1 13fi 14 15export PETSC_DIR=$PWD 16export PETSC_ARCH=arch-ios-simulator 17rm -rf ${PETSC_ARCH} 18./systems/Apple/iOS/bin/arch-ios-simulator.py 19./systems/Apple/iOS/bin/iosbuilder.py 20./systems/Apple/iOS/bin/makeframework simulator 21 22export LOC=$PETSC_DIR 23make alldoc 24make allman 25./systems/Apple/iOS/bin/makedocs 26 27./systems/Apple/iOS/bin/makedmg 28 29echo "To use the PETSc.framework in examples either run the installer ${PETSC_DIR}/PETSc-iOS.dmg" 30echo " or sudo cp -r ${PETSC_DIR}/PETSc-iOS /Library/Frameworks" 31 32 33 34 35