Some slight cleanup and reorganization
Added support for making RPM distribution git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
22
utils/wxPython/distrib/makerpm
Executable file
22
utils/wxPython/distrib/makerpm
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z $1 ]; then
|
||||
echo "Please specify a version number on the command line."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -f wxPython.spec.in ]; then
|
||||
echo "Please run this script from the directory containing the wxPython.spec.in file."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
|
||||
mkdir i386
|
||||
strip /usr/lib/python1.5/site-packages/wxPython/wxcmodule.so
|
||||
|
||||
cat wxPython.spec.in | sed s/__VERSION__/$1/g > wxPython.spec
|
||||
rpm --rcfile .rpmrc -bb --clean wxPython.spec
|
||||
|
||||
mv i386/*.rpm .
|
||||
rm -rf i386
|
Reference in New Issue
Block a user