1999-05-04 00:25:56 +00:00
|
|
|
#!/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
|
|
|
|
|
|
|
|
|
|
|
|
|
1999-08-05 06:47:57 +00:00
|
|
|
strip /usr/lib/python1.5/site-packages/wxPython/*.so
|
|
|
|
strip /usr/lib/libwxPyHelpers.so
|
1999-05-04 00:25:56 +00:00
|
|
|
|
|
|
|
cat wxPython.spec.in | sed s/__VERSION__/$1/g > wxPython.spec
|
|
|
|
|
1999-06-23 05:28:10 +00:00
|
|
|
mkdir /usr/doc/wxPython-$1
|
|
|
|
cp ../README.txt /usr/doc/wxPython-$1
|
1999-08-05 06:47:57 +00:00
|
|
|
cp ../../../docs/preamble.txt /usr/doc/wxPython-$1
|
|
|
|
cp ../../../docs/licence.txt /usr/doc/wxPython-$1
|
|
|
|
cp ../../../docs/licendoc.txt /usr/doc/wxPython-$1
|
|
|
|
cp ../../../docs/lgpl.txt /usr/doc/wxPython-$1
|
|
|
|
cp ../../../docs/gpl.txt /usr/doc/wxPython-$1
|
1999-06-23 05:28:10 +00:00
|
|
|
|
|
|
|
rpm -bb wxPython.spec
|
|
|
|
|
|
|
|
mv /usr/src/redhat/RPMS/*/wxPython*.rpm .
|
1999-10-07 22:05:16 +00:00
|
|
|
chown rd:users wxPython*.rpm
|
1999-06-23 05:28:10 +00:00
|
|
|
|
|
|
|
rm -r /usr/doc/wxPython-$1
|