]> git.saurik.com Git - wxWidgets.git/blame - wxPython/distrib/makerpm
post wxUniv merge fixes
[wxWidgets.git] / wxPython / distrib / makerpm
CommitLineData
f6bcfd97
BP
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 ]; then
9 echo "Please run this script from the directory containing the wxPython.spec file."
10 exit 1
11fi
12
13
14
15#strip /usr/lib/python1.5/site-packages/wxPython/*.so
16#strip /usr/lib/libwxPyHelpers.so
17#
18#cat wxPython.spec.in | sed s/__VERSION__/$1/g > wxPython.spec
19#
20#mkdir /usr/doc/wxPython-$1
21#cp ../README.txt /usr/doc/wxPython-$1
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
27#
28#rpm -bb wxPython.spec
29#
30#mv /usr/src/redhat/RPMS/*/wxPython*.rpm .
31#chown rd:users wxPython*.rpm
32#
33#rm -r /usr/doc/wxPython-$1
34
35cp -f wxPython-$1.tar.gz /usr/src/redhat/SOURCES
36rpm -ba wxPython.spec
37
38mv /usr/src/redhat/RPMS/*/wxPython*.rpm .
39mv /usr/src/redhat/SRPMS/wxPython*.rpm .
40chown rd:users wxPython*.rpm
41rm -rf /usr/lib/python1.5/site-packages/wxPython/
42rm -f /usr/lib/libwxPyHelpers*
43rm -rf /usr/doc/wxPython-$1
44
45
46
47