]>
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 | ||
77ed579e RD |
15 | strip /usr/lib/python1.5/site-packages/wxPython/*.so |
16 | strip /usr/lib/libwxPyHelpers.so | |
e6c95f27 RD |
17 | |
18 | cat wxPython.spec.in | sed s/__VERSION__/$1/g > wxPython.spec | |
e6c95f27 | 19 | |
2d9f5597 RD |
20 | mkdir /usr/doc/wxPython-$1 |
21 | cp ../README.txt /usr/doc/wxPython-$1 | |
77ed579e RD |
22 | cp ../../../docs/preamble.txt /usr/doc/wxPython-$1 |
23 | cp ../../../docs/licence.txt /usr/doc/wxPython-$1 | |
24 | cp ../../../docs/licendoc.txt /usr/doc/wxPython-$1 | |
25 | cp ../../../docs/lgpl.txt /usr/doc/wxPython-$1 | |
26 | cp ../../../docs/gpl.txt /usr/doc/wxPython-$1 | |
2d9f5597 RD |
27 | |
28 | rpm -bb wxPython.spec | |
29 | ||
30 | mv /usr/src/redhat/RPMS/*/wxPython*.rpm . | |
31 | ||
32 | rm -r /usr/doc/wxPython-$1 |