]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/distrib/makerpm
Updated WISE scripts
[wxWidgets.git] / utils / wxPython / distrib / makerpm
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 strip /usr/lib/python1.5/site-packages/wxPython/wxcmodule.so
16
17 cat wxPython.spec.in | sed s/__VERSION__/$1/g > wxPython.spec
18
19 mkdir /usr/doc/wxPython-$1
20 cp ../README.txt /usr/doc/wxPython-$1
21
22 rpm -bb wxPython.spec
23
24 mv /usr/src/redhat/RPMS/*/wxPython*.rpm .
25
26 rm -r /usr/doc/wxPython-$1