summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-01-03 15:19:51 +0000
committerGerald Carter <jerry@samba.org>2003-01-03 15:19:51 +0000
commit8a0fb1a60d923f4392ef1d797f570f7eb990011f (patch)
tree1548d4dc97c0cdbe20b488d4a64ad02363744440 /packaging
parent42a4e5b851aa7c9fd9dca5a6f8f42e5d91246c76 (diff)
downloadsamba-8a0fb1a60d923f4392ef1d797f570f7eb990011f.tar.gz
samba-8a0fb1a60d923f4392ef1d797f570f7eb990011f.tar.xz
samba-8a0fb1a60d923f4392ef1d797f570f7eb990011f.zip
patch from Andrew Bird to correct a few file/directory checks when building
Diffstat (limited to 'packaging')
-rw-r--r--packaging/RedHat/makerpms.sh.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging/RedHat/makerpms.sh.tmpl b/packaging/RedHat/makerpms.sh.tmpl
index 31e660d9450..287b5dc9437 100644
--- a/packaging/RedHat/makerpms.sh.tmpl
+++ b/packaging/RedHat/makerpms.sh.tmpl
@@ -12,9 +12,9 @@
# Note: Under this directory rpm expects to find the same directories that are under the
# /usr/src/redhat directory
#
-if [ -x ~/.rpmmacros ]; then
+if [ -f ~/.rpmmacros ]; then
TOPDIR=`awk '/topdir/ {print $2}' < ~/.rpmmacros`
- if [ z$TOPDIR <> "z" ]; then
+ if [ z$TOPDIR != "z" ]; then
SPECDIR=${TOPDIR}/SPECS
SRCDIR=${TOPDIR}/SOURCES
fi