From eafdbcc36df59a99ca6f01f761b4ce4c99878f2d Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Fri, 3 Jan 2003 15:19:51 +0000 Subject: patch from Andrew Bird to correct a few file/directory checks when building (This used to be commit 8a0fb1a60d923f4392ef1d797f570f7eb990011f) --- packaging/RedHat/makerpms.sh.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packaging/RedHat') diff --git a/packaging/RedHat/makerpms.sh.tmpl b/packaging/RedHat/makerpms.sh.tmpl index 31e660d945..287b5dc943 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 -- cgit