X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5f9dc1f1aca6e71b0a7a8f6028991c4bde4265c7..9b4e3f352b36dee39d7e451a6c9db90862f5563e:/wxPython/distrib/mac/_build diff --git a/wxPython/distrib/mac/_build b/wxPython/distrib/mac/_build index 1c11e75c78..3e660da5a5 100755 --- a/wxPython/distrib/mac/_build +++ b/wxPython/distrib/mac/_build @@ -17,8 +17,10 @@ progDir="`dirname \"$0\"`" defSrcPath="/projects/wx" defDstPath="/projects/wx/wxPython/dist" -pkgName="wxMacPython" -version=`date +"%Y-%m-%d"` +pkgName="wxPythonOSX" +#version=`date +"%Y-%m-%d"` +version=`cd $defSrcPath/wxPython; python$PYVER -c 'import setup;print setup.VERSION'` + dmgRoot="dmg-root" pkgRoot="pkg-root" wxWindowsInst="$pkgRoot/usr/local" @@ -124,8 +126,9 @@ fi #----------------------------------- msg configuring wxWindows + buildDir="$srcPath/build-pkg" -dFlag= +dFlag="--enable-debug_flag --enable-optimise" if [ $debug ]; then buildDir="$srcPath/build-pkg-debug" dFlag="--enable-debug" @@ -139,7 +142,7 @@ if [ $force ]; then fi msgdo mkdir -m 775 "$buildDir" msgdo cd "$buildDir" - msgdo ../configure --with-mac --with-opengl $dFlag + msgdo ../configure --with-mac --with-opengl --enable-precomp=no $dFlag cd $curDir else @@ -151,12 +154,14 @@ fi msg building wxWindows msgdo cd $buildDir msgdo make +msgdo cd ../locale +msgdo make allmo cd $curDir #----------------------------------- msg installing wxWindows -msgdo mkdir -p -m 755 "$dstPath/$temp/$wxWindowsInst" +msgdo mkdir -p -m 1755 "$dstPath/$temp/$wxWindowsInst" msgdo cd "$buildDir" # install once to the package directory, and once to the @@ -205,13 +210,20 @@ msg copying additional wxPython files msgdo cp -pR "$srcPath/wxPython/samples" "$dstPath/$temp/$dmgRoot" msgdo cp -pR "$srcPath/wxPython/demo" "$dstPath/$temp/$dmgRoot" msgdo cp -pR "$srcPath/wxPython/licence" "$dstPath/$temp/$dmgRoot" -msgdo cp -pR "$srcPath/wxPython/tools" "$dstPath/$temp/$dmgRoot" find "$dstPath/$temp/$dmgRoot" -name "CVS" -type d -print0 | xargs -0 rm -rf find "$dstPath/$temp/$dmgRoot" -name ".DS_Store" -type f -print0 | xargs -0 rm find "$dstPath/$temp/$dmgRoot" -name ".cvsignore" -type f -print0 | xargs -0 rm find "$dstPath/$temp/$dmgRoot" -name ".#*" -type f -print0 | xargs -0 rm find "$dstPath/$temp/$dmgRoot" -name "b" -type f -print0 | xargs -0 rm find "$dstPath/$temp/$dmgRoot" -name "*~*~" -type f -print0 | xargs -0 rm + +msgdo cd "$srcPath/wxPython/scripts" +sFiles=`$pythonExec CreateMacScripts.py` +for f in $sFiles; do + msgdo cp $f "$dstPath/$temp/$wxWindowsInst/bin" +done +cd $curDir + msgdo chown -R ${user}:staff "$dstPath/$temp/$dmgRoot"