Release of synfigstudio 0.61.09 version. *****
[synfig.git] / ETL / tags / stable / config / pkg-support / devel-resources / install.sh
1 #!/bin/sh
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"
7 umask 022
8 sleep 1
9
10 RESOURCE_DIR=`dirname $0`
11
12 cd RESOURCE_DIR
13
14 echo "Creating ETL-config script"
15 sleep 1
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
21
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
24
25 ln -s /usr/local/include/ETL /Library/Frameworks/ETL.framework/Headers
26 sed '
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;
34 s:@LIBS@::g;
35 ' < $RESOURCE_DIR/ETL-config.in > /usr/local/bin/ETL-config
36 chmod 775 /usr/local/bin/ETL-config
37
38 echo "Done with shell script"
39 sleep 1
40
41 exit 0
42
43
44 #echo "Precompiling Headers"
45 #/usr/bin/cc -precomp ~/Library/Frameworks/SDL.framework/Headers/SDL.h -o ~/Library/Frameworks/SDL.framework/Headers/SDL.p
46
47 # open up the README file
48 #open ~/"Readme SDL Developer.txt"