]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/distrib/all/do-build-osx
   2 # --------------------------------------------------------------------------- 
   3 # Build wxWidgets and wxPython on a OSX box.  This is normally  
   4 # called from build-all but it should be able to be used standalone too... 
   6 # The command line must have the following parameters: 
   8 #    1. the path to the base of the wx source tree 
   9 #    2. the path of where to put the resulting installers 
  10 #    3. skipclean flag (yes|no) 
  12 #    5. the version of Python to build for 
  13 #    6. the character type (ansi|unicode|both) 
  14 #    7. optional flags to pass on to the build script 
  16 # --------------------------------------------------------------------------- 
  21 echo "-=-=-=-  Hello from $HOSTNAME  -=-=-=-" 
  24     echo "Usage: $0 WXDIR DESTDIR SKIPCLEAN VERSION PYVER CHARTYPE [FLAGS]" 
  37 #export PATH=/sw/bin:/usr/local/bin:$PATH 
  38 export PATH
=/sw
/bin
:/sw
/sbin
:/usr
/local
/bin
:/bin
:/sbin
:/usr
/bin
:/usr
/sbin
:.
:/usr
/X
11R
6/bin
 
  40 echo "which gcc = " `which gcc` 
  44 echo "Unarchiving wxPython-src-$VERSION.tar.bz2" 
  46 tar xjf wxPython
-src-$VERSION.
tar.bz2
 
  47 rm wxPython
-src-$VERSION.
tar.bz2
 
  50 echo "Invoking wxPythonOSX build script..." 
  52 export TARBALLDIR
=$DESTDIR 
  54 if [ $CHARTYPE = both 
]; then 
  55     distrib
/mac
/wxPythonOSX
/build 
$PYVER inplace ansi 
$FLAGS 
  56     distrib
/mac
/wxPythonOSX
/build 
$PYVER inplace unicode 
$FLAGS 
  58     distrib
/mac
/wxPythonOSX
/build 
$PYVER inplace 
$CHARTYPE $FLAGS 
  61 echo "Copying installers to $DESTDIR..." 
  62 cp dist
/*.dmg 
$DESTDIR 
  66 if [ $SKIPCLEAN != yes ]; then  
  69     rm wxPython
-docs-$VERSION.
tar.bz2
 
  70     rm wxPython
-demo-$VERSION.
tar.bz2
 
  73 echo "-=-=-=-  Goodbye!  -=-=-=-"