diff options
author | John Terpstra <jht@samba.org> | 1997-06-23 19:47:24 +0000 |
---|---|---|
committer | John Terpstra <jht@samba.org> | 1997-06-23 19:47:24 +0000 |
commit | 6ab091a169ac4c89fe027cc5e6aa21e2cdbfa448 (patch) | |
tree | c2c7106e8a67940c63d243f7bec959824274679d /examples/redhat/makerpms.sh | |
parent | 87c3e0030d57880814014db470dc0d46b051a763 (diff) | |
download | samba-6ab091a169ac4c89fe027cc5e6aa21e2cdbfa448.tar.gz samba-6ab091a169ac4c89fe027cc5e6aa21e2cdbfa448.tar.bz2 samba-6ab091a169ac4c89fe027cc5e6aa21e2cdbfa448.zip |
JHT ==> Just doing his thing again! Yuck!
(This used to be commit ff4d52b239e16047a01e655a830e8dc9f9d06dfc)
Diffstat (limited to 'examples/redhat/makerpms.sh')
-rwxr-xr-x | examples/redhat/makerpms.sh | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/examples/redhat/makerpms.sh b/examples/redhat/makerpms.sh index e94bea05ca..df54884a74 100755 --- a/examples/redhat/makerpms.sh +++ b/examples/redhat/makerpms.sh @@ -1,9 +1,10 @@ #!/bin/sh # First we move all our gear into place - a noble move! -RPMDIR=/usr/src/redhat -cp -a *.spec $RPMDIR/SPECS -cp -a *.patch smb.* samba.log $RPMDIR/SOURCES -cd $RPMDIR/SOURCES -rm -rf samba-1.9.17a1 -cd $RPMDIR/SPECS -rpm -ba -v samba-1.9.17a1.spec +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 |