]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/distrib/makerpm
more tweaks...
[wxWidgets.git] / utils / wxPython / distrib / makerpm
CommitLineData
e6c95f27
RD
1#!/bin/bash
2
3if [ -z $1 ]; then
4 echo "Please specify a version number on the command line."
5 exit 1
6fi
7
8if [ ! -f wxPython.spec.in ]; then
9 echo "Please run this script from the directory containing the wxPython.spec.in file."
10 exit 1
11fi
12
13
14
e6c95f27
RD
15strip /usr/lib/python1.5/site-packages/wxPython/wxcmodule.so
16
17cat wxPython.spec.in | sed s/__VERSION__/$1/g > wxPython.spec
e6c95f27 18
2d9f5597
RD
19mkdir /usr/doc/wxPython-$1
20cp ../README.txt /usr/doc/wxPython-$1
21
22rpm -bb wxPython.spec
23
24mv /usr/src/redhat/RPMS/*/wxPython*.rpm .
25
26rm -r /usr/doc/wxPython-$1