summaryrefslogtreecommitdiff
path: root/examples/redhat/makerpms.sh
blob: 981dfa6a44d30fda4c3be5f3c9d8e51ee40eabcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# Copyright (C) John H Terpstra and Erik Troan - 1997
#
# First we move all our gear into place - a noble move!
RPMDIR=`rpm --showrc | awk '/^rpmdir/ { print $3}'`
SPECDIR=`rpm --showrc | awk '/^specdir/ { print $3}'`
SRCDIR=`rpm --showrc | awk '/^sourcedir/ { print $3}'`

cp -a *.spec $SPECDIR
cp -a *.patch smb.* samba.log $SRCDIR
cd $SPECDIR
rpm --clean -ba samba.spec