JHT ==> Just doing his thing again! Yuck!
[ira/wip.git] / examples / redhat / makerpms.sh
1 #!/bin/sh
2 # First we move all our gear into place - a noble move!
3 RPMDIR=`rpm --showrc | awk '/^rpmdir/ { print $3}'`
4 SPECDIR=`rpm --showrc | awk '/^specdir/ { print $3}'`
5 SRCDIR=`rpm --showrc | awk '/^sourcedir/ { print $3}'`
6
7 cp -a *.spec $SPECDIR
8 cp -a *.patch smb.* samba.log $SRCDIR
9 cd $SPECDIR
10 rpm --clean -ba samba.spec