mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 09:40:07 +01:00
59 lines
1.4 KiB
Bash
Executable File
59 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o errexit
|
|
#set -o xtrace
|
|
|
|
PYVER=2.7
|
|
PYTHON=`which python$PYVER`
|
|
|
|
if [ ! -x $PYTHON ]; then
|
|
echo Something is wrong with the Python at $PYTHON
|
|
exit 1
|
|
fi
|
|
|
|
MYBINDIR=$(dirname $(readlink -f $0))
|
|
|
|
cd $PROJECTS/sip/sip
|
|
SIPVER=`$PYTHON configure.py --version | grep -v "This is SIP"`
|
|
PLATFORM=`$PYTHON -c "import buildtools.config as bc; print(bc.getToolsPlatformName(True))"`
|
|
echo $PLATFORM
|
|
|
|
if [ "$PLATFORM" = "darwin" ]; then
|
|
# try to ensure compatiblity back to 10.5 if we can
|
|
xcode=$(xcode-select -print-path)
|
|
if [ -d $xcode/SDKs/MacOSX10.5.sdk ]; then
|
|
SDK=$xcode/SDKs/MacOSX10.5.sdk
|
|
elif [ -d $xcode/SDKs/MacOSX10.6.sdk ]; then
|
|
SDK=$xcode/SDKs/MacOSX10.6.sdk
|
|
elif [ -d $xcode/SDKs/MacOSX10.7.sdk ]; then
|
|
SDK=$xcode/SDKs/MacOSX10.7.sdk
|
|
fi
|
|
$PYTHON configure.py \
|
|
--deployment-target=10.5 \
|
|
--sdk=$SDK \
|
|
--arch=i386 \
|
|
--sip-module wx.siplib \
|
|
$*
|
|
|
|
make -C sipgen clean all
|
|
else
|
|
$PYTHON configure.py \
|
|
--sip-module wx.siplib \
|
|
$*
|
|
|
|
make -C sipgen clean all
|
|
fi
|
|
|
|
mv sipgen/sip $MYBINDIR/sip-$SIPVER-$PLATFORM
|
|
cd $MYBINDIR
|
|
|
|
echo ""
|
|
echo "The MD5:"
|
|
$PYTHON mymd5.py sip-$SIPVER-$PLATFORM
|
|
echo ""
|
|
echo "If ready to upload then do these commands now:"
|
|
echo " bzip2 -9 $MYBINDIR/sip-$SIPVER-$PLATFORM"
|
|
echo " scp $MYBINDIR/sip-$SIPVER-$PLATFORM.bz2 robind@riobu.com:/home/robind/domains/wxpython.org/htdocs/Phoenix/tools"
|
|
|
|
|