Added consultant.
[Samba.git] / examples / redhat / makerpms.sh
blobfbda839afc4f5ecdcb467913f469c0acfa90635c
1 #!/bin/sh
2 # Copyright (C) John H Terpstra and Erik Troan - 1997
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}'`
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