summaryrefslogtreecommitdiff
path: root/examples/redhat/makerpms.sh
blob: fbda839afc4f5ecdcb467913f469c0acfa90635c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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 $SRCDIR
tar czvf samba-1.9.17.tar.gz samba-1.9.17
cd $SPECDIR
rpm --clean -ba samba.spec