]> granicus.if.org Git - file/commitdiff
more portable if/then/else
authorChristos Zoulas <christos@zoulas.com>
Wed, 3 Aug 2011 16:55:40 +0000 (16:55 +0000)
committerChristos Zoulas <christos@zoulas.com>
Wed, 3 Aug 2011 16:55:40 +0000 (16:55 +0000)
magic/Makefile.am

index eeba2a5374dc18bd6cb2ba33a898fa838685d1b8..af3a2ddea96cbc9d55115f607fff393a069d5498 100644 (file)
@@ -1,5 +1,5 @@
 #
-# $File: Makefile.am,v 1.69 2011/08/03 16:28:23 christos Exp $
+# $File: Makefile.am,v 1.70 2011/08/03 16:55:40 christos Exp $
 #
 MAGIC_FRAGMENT_BASE = Magdir
 MAGIC_DIR = $(top_srcdir)/magic
@@ -254,8 +254,8 @@ endif
 ${MAGIC}: $(EXTRA_DIST) $(FILE_COMPILE_DEP)
        @rm -fr magic
        @mkdir magic && cp -p $(EXTRA_DIST) magic
-       @(if expr "${FILE_COMPILE}" : '.*/.*' > /dev/null;  then \
-           : \
+       @(if expr "${FILE_COMPILE}" : '.*/.*' > /dev/null; then \
+           echo "Using ${FILE_COMPILE} to generate ${MAGIC}" > /dev/null; \
          else \
            v=$$(file --version | sed -e s/file-// -e q); \
            if [ "$$v" != "${PACKAGE_VERSION}" ]; then \