mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-09-05 17:30:26 +02:00
50 lines
1.0 KiB
Bash
Executable File
50 lines
1.0 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))
|
|
|
|
PLATFORM=`$PYTHON -c "import buildtools.config as bc; print(bc.getToolsPlatformName(True))"`
|
|
echo $PLATFORM
|
|
cd $PROJECTS/sip/sip
|
|
SIPVER=`$PYTHON configure.py --version | grep -v "This is SIP"`
|
|
|
|
if [ "$PLATFORM" = "darwin" ]; then
|
|
$PYTHON configure.py \
|
|
--deployment-target=10.9 \
|
|
--arch=x86_64 \
|
|
--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"
|
|
|
|
|