Skip to content

Latest commit

 

History

History
executable file
·
19 lines (16 loc) · 771 Bytes

File metadata and controls

executable file
·
19 lines (16 loc) · 771 Bytes
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# finish up the installation
# this script should be executed using the sudo command
# this file is copied to physfs.post_install and physfs.post_upgrade
# inside the .pkg bundle
echo "Running post-install script"
umask 022
ROOT=/Developer/Documentation/SDL
echo "Moving physfs.framework to ~/Library/Frameworks"
# move SDL to its proper home, so the target stationary works
mkdir -p ~/Library/Frameworks
/Developer/Tools/CpMac -r $ROOT/physfs.framework ~/Library/Frameworks
rm -rf $ROOT/physfs.framework
echo "Precompiling Header"
# precompile header for speedier compiles
/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