File: build-sip-posix

package info (click to toggle)
wxpython4.0 4.0.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 211,112 kB
  • sloc: cpp: 888,355; python: 223,130; makefile: 52,087; ansic: 45,780; sh: 3,012; xml: 1,534; perl: 264
file content (63 lines) | stat: -rwxr-xr-x 1,525 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/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
    # try to ensure compatibility back to 10.6 if we can
    xcode=$(xcode-select -print-path)
    for v in 7 8 9 10 11 12 13 14 15; do
        if [ -d $xcode/SDKs/MacOSX10.$v.sdk ]; then
            SDK=$xcode/SDKs/MacOSX10.$v.sdk
            break
        elif [ -d $xcode/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.$v.sdk ]; then
            SDK=$xcode/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.$v.sdk
            break
        fi
    done

    $PYTHON configure.py \
	--deployment-target=10.7 \
	--sdk=$SDK \
	--arch=i386 \
	--universal \
	--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"