]>
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 KIND (panther or jaguar) 
  13 #    *. the remaining args are the versions of Python to build for 
  15 # --------------------------------------------------------------------------- 
  20 echo "-=-=-=-  Hello from $HOSTNAME  -=-=-=-" 
  23     echo "Usage: $0 WXDIR DESTDIR SKIPCLEAN VERSION KIND PYVER" 
  35 #export PATH=/sw/bin:/usr/local/bin:$PATH 
  36 export PATH
=/sw
/bin
:/sw
/sbin
:/usr
/local
/bin
:/bin
:/sbin
:/usr
/bin
:/usr
/sbin
:.
:/usr
/X
11R
6/bin
 
  38 echo "which gcc = " `which gcc` 
  42 echo "Unarchiving wxPython-src-$VERSION.tar.gz" 
  44 tar xzf wxPython
-src-$VERSION.
tar.gz 
 
  45 rm wxPython
-src-$VERSION.
tar.gz
 
  48 echo "Invoking wxPythonOSX build script..." 
  50 export TARBALLDIR
=$DESTDIR 
  52 if [ $KIND = panther 
]; then 
  53     distrib
/mac
/wxPythonOSX
/build 
$PYVER $KIND inplace unicode
 
  55 distrib
/mac
/wxPythonOSX
/build 
$PYVER $KIND inplace 
 
  58 echo "Copying installers to $DESTDIR..." 
  59 cp dist
/*.dmg 
$DESTDIR 
  63 if [ $SKIPCLEAN != yes ]; then  
  66     rm wxPython
-docs-$VERSION.
tar.gz
 
  67     rm wxPython
-demo-$VERSION.
tar.gz
 
  70 echo "-=-=-=-  Goodbye!  -=-=-=-"