install.sh 771 B

12345678910111213141516171819
  1. #!/bin/sh
  2. # finish up the installation
  3. # this script should be executed using the sudo command
  4. # this file is copied to physfs.post_install and physfs.post_upgrade
  5. # inside the .pkg bundle
  6. echo "Running post-install script"
  7. umask 022
  8. ROOT=/Developer/Documentation/SDL
  9. echo "Moving physfs.framework to ~/Library/Frameworks"
  10. # move SDL to its proper home, so the target stationary works
  11. mkdir -p ~/Library/Frameworks
  12. /Developer/Tools/CpMac -r $ROOT/physfs.framework ~/Library/Frameworks
  13. rm -rf $ROOT/physfs.framework
  14. echo "Precompiling Header"
  15. # precompile header for speedier compiles
  16. /usr/bin/cc -I $HOME/Library/Frameworks/SDL.framework/Headers -precomp ~/Library/Frameworks/physfs.framework/Headers/physfs.h -o ~/Library/Frameworks/physfs.framework/Headers/physfs.p