wxWidgets/utils/wxPython/distrib/makerpm
Robin Dunn e6c95f27a3 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
1999-05-04 00:25:56 +00:00

23 lines
464 B
Bash
Executable File

#!/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