]>
Commit | Line | Data |
---|---|---|
36e91097 RD |
1 | #!/bin/bash |
2 | # --------------------------------------------------------------------------- | |
3 | # Build the wxPython source RPMs on a Linux box. This is normally called | |
4 | # from build-all but it should be able to be used standalone too... | |
5 | # | |
6 | # The command line must have the following parameters: | |
7 | # | |
d6624155 RD |
8 | # 1. the path of the build dir. The src RPMs will be here when we start |
9 | # and the binary RPMs will be left here when we're done. | |
10 | # 2. skipclean flag (yes|no) | |
11 | # 3. the VERSION | |
12 | # 4. the remaining args are the versions of Python to build for | |
36e91097 RD |
13 | # |
14 | # --------------------------------------------------------------------------- | |
15 | ||
16 | set -o errexit | |
17 | #set -o xtrace | |
18 | ||
19 | echo "-=-=-=- Hello from $HOSTNAME -=-=-=-" | |
20 | ||
5797a657 | 21 | if [ $# -lt 4]; then |
36e91097 RD |
22 | echo "Usage: $0 WXDIR DESTDIR SKIPCLEAN VERSION PYVER..." |
23 | exit 1 | |
24 | fi | |
25 | ||
d6624155 RD |
26 | DESTDIR=$1 |
27 | SKIPCLEAN=$2 | |
28 | VERSION=$3 | |
29 | shift;shift;shift | |
36e91097 RD |
30 | PYVER=$@ |
31 | ||
32 | # Since this is probably a VMWare guest, make sure that the date and | |
33 | # time are correct | |
34 | ntpdate gate.alldunn.com | |
35 | ||
36 | ||
d6624155 | 37 | cd $DESTDIR |
36e91097 RD |
38 | |
39 | for ver in $PYVER; do | |
40 | echo "Building the RPMs for Python $ver..." | |
d6624155 RD |
41 | myrpmbuild --rebuild wxPythonGTK-py$ver-$VERSION-1.src.rpm |
42 | myrpmbuild --rebuild wxPythonGTK2-py$ver-$VERSION-1.src.rpm | |
36e91097 RD |
43 | done |
44 | ||
45 | ||
5797a657 RD |
46 | #echo "Copying RPMs to $DESTDIR..." |
47 | #cp wxPythonGTK*.i[0-9]86.rpm $DESTDIR | |
48 | #cd $DESTDIR | |
36e91097 RD |
49 | |
50 | ||
51 | if [ $SKIPCLEAN != yes ]; then | |
52 | echo "Cleaning up..." | |
d6624155 RD |
53 | for ver in $PYVER; do |
54 | rm wxPythonGTK-py$ver-$VERSION-1.src.rpm | |
55 | done | |
36e91097 RD |
56 | fi |
57 | ||
58 | echo "-=-=-=- Goodbye! -=-=-=-" |