2 # finish up the installation
3 # this script should be executed using the sudo command
4 # this file is copied to ETL-devel.post_install and ETL-devel.post_upgrade
5 # inside the .pkg bundle
6 echo "Running post-install script"
10 RESOURCE_DIR=`dirname $0`
14 echo "Creating ETL-config script"
16 [ -d /usr/local ] || mkdir /usr/local
17 [ -d /usr/local/bin ] || mkdir /usr/local/bin
18 [ -d /usr/local/include ] || mkdir /usr/local/include
19 [ -d /usr/local/lib ] || mkdir /usr/local/lib
20 [ -d /usr/local/sbin ] || mkdir /usr/local/sbin
22 # If we already have a directory called ETL in our include directory, nuke it
23 [ -d /usr/local/include/ETL ] && rm -fr /usr/local/include/ETL
25 ln -s /usr/local/include/ETL /Library/Frameworks/ETL.framework/Headers
27 s:@exec_prefix@:/usr/local:g;
28 s:@prefix@:/usr/local:g;
29 s:@bindir@:$exec_prefix/bin:g;
30 s:@libdir@:$exec_prefix/lib:g;
31 s:@includedir@:$prefix/include:g;
32 s:@VERSION@:@_VERSION_@:g;
33 s:@PACKAGE@:@_PACKAGE_@:g;
35 ' < $RESOURCE_DIR/ETL-config.in > /usr/local/bin/ETL-config
36 chmod 775 /usr/local/bin/ETL-config
38 echo "Done with shell script"
44 #echo "Precompiling Headers"
45 #/usr/bin/cc -precomp ~/Library/Frameworks/SDL.framework/Headers/SDL.h -o ~/Library/Frameworks/SDL.framework/Headers/SDL.p
47 # open up the README file
48 #open ~/"Readme SDL Developer.txt"