00001 #!/bin/sh
00002 # ===========================================================================
00003 # = NAME
00004 # makebundle
00005 #
00006 # = USAGE
00007 # makebundle mythfrontend[.app]
00008 # makebundle mythtv-setup[.app]
00009 # makebundle mythtv[.app]
00010 #
00011 # = DESCRIPTION
00012 # Script to produce an application bundle with filters, themes, et c.
00013 # osx-bundler.pl does most of the hard work, automatically, but the
00014 # other parts are Myth specific, and use lots of nasty hard-coded paths.
00015 #
00016 # = REVISION
00017 # $Id: makebundle.sh 15443 2008-01-14 22:14:47Z nigel $
00018 #
00019 # = AUTHOR
00020 # Nigel Pearson
00021 # ===========================================================================
00022
00023 if [ -z $1 ] ; then
00024 echo "Error: No binary/bundle name supplied."
00025 exit
00026 fi
00027
00028 if [ -e $1 ] ; then
00029 # Lazy way of guessing if $1 ends in .app:
00030 if [ -e $1/Contents ] ; then
00031 BNDL=$1/Contents
00032 else
00033 BNDL=$1.app/Contents
00034 fi
00035 else
00036 echo "Error: binary/bundle '"$1"' doesn't exist!"
00037 exit
00038 fi
00039
00040 # ===========================================================================
00041 # Search the binary's libs and frameworks, copy each one into the bundle,
00042 # and then correct the load paths in binary/libs/frameworks. If called
00043 # with a binary, this will also produce the .app directory structure too.
00044
00045 echo "Installing libraries into bundle as Frameworks"
00046 ../../contrib/OSX/osx-bundler.pl $1 ../../libs
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088