]>
Commit | Line | Data |
---|---|---|
e6c95f27 RD |
1 | #!/bin/bash |
2 | ||
3 | if [ -z $1 ]; then | |
4 | echo "Please specify a version number on the command line." | |
5 | exit 1 | |
6 | fi | |
7 | ||
8 | if [ ! -f wxPython.spec.in ]; then | |
9 | echo "Please run this script from the directory containing the wxPython.spec.in file." | |
10 | exit 1 | |
11 | fi | |
12 | ||
13 | ||
14 | ||
15 | mkdir i386 | |
16 | strip /usr/lib/python1.5/site-packages/wxPython/wxcmodule.so | |
17 | ||
18 | cat wxPython.spec.in | sed s/__VERSION__/$1/g > wxPython.spec | |
69c6074d | 19 | rpm --rcfile .rpmrc -bb wxPython.spec |
e6c95f27 RD |
20 | |
21 | mv i386/*.rpm . | |
22 | rm -rf i386 |