JHT ===> Just a little bit of rearranging the deck chairs - more growth space.
[kai/samba.git] / examples / redhat / makerpms.sh
1 #!/bin/sh
2 # Copyright (C) John H Terpstra and Erik Troan - 1997
3 #
4 # First we move all our gear into place - a noble move!
5 RPMDIR=`rpm --showrc | awk '/^rpmdir/ { print $3}'`
6 SPECDIR=`rpm --showrc | awk '/^specdir/ { print $3}'`
7 SRCDIR=`rpm --showrc | awk '/^sourcedir/ { print $3}'`
8
9 cp -a *.spec $SPECDIR
10 cp -a *.patch smb.* samba.log $SRCDIR
11 cd $SRCDIR
12 tar czvf samba-1.9.17.tar.gz samba-1.9.17
13 cd $SPECDIR
14 rpm --clean -ba samba.spec