git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
		
			
				
	
	
		
			26 lines
		
	
	
		
			537 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			537 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
 | 
						|
 | 
						|
 | 
						|
 | 
						|
strip /usr/lib/python1.5/site-packages/wxPython/wxcmodule.so
 | 
						|
 | 
						|
cat wxPython.spec.in | sed s/__VERSION__/$1/g > wxPython.spec
 | 
						|
 | 
						|
mkdir /usr/doc/wxPython-$1
 | 
						|
cp ../README.txt /usr/doc/wxPython-$1
 | 
						|
 | 
						|
rpm -bb wxPython.spec
 | 
						|
 | 
						|
mv /usr/src/redhat/RPMS/*/wxPython*.rpm .
 | 
						|
 | 
						|
rm -r /usr/doc/wxPython-$1 |