patch from Andrew Bird to correct a few file/directory checks when building
authorGerald Carter <jerry@samba.org>
Fri, 3 Jan 2003 15:19:51 +0000 (15:19 +0000)
committerGerald Carter <jerry@samba.org>
Fri, 3 Jan 2003 15:19:51 +0000 (15:19 +0000)
packaging/RedHat/makerpms.sh.tmpl

index 31e660d945017a56d4f1021b786896f5118375dc..287b5dc94376a5255fe967fca6628bb597d755a3 100644 (file)
@@ -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