From 627d5adc63bd5ee4ea91346fbb4b438b93d911bf Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 11 May 2010 08:43:18 +0000 Subject: [PATCH] Skip unneeded 'cat' command execution. --- make.tmpl.in | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/make.tmpl.in b/make.tmpl.in index 69fab00f1..6d9f6818d 100644 --- a/make.tmpl.in +++ b/make.tmpl.in @@ -142,14 +142,11 @@ STRIP= LVM_VERSION := $(shell cat $(top_srcdir)/VERSION) -LIB_VERSION_LVM := $(shell cat $(top_srcdir)/VERSION | \ - $(AWK) -F '.' '{printf "%s.%s",$$1,$$2}') +LIB_VERSION_LVM := $(shell $(AWK) -F '.' '{printf "%s.%s",$$1,$$2}' $(top_srcdir)/VERSION) -LIB_VERSION_DM := $(shell cat $(top_srcdir)/VERSION_DM | \ - $(AWK) -F '.' '{printf "%s.%s",$$1,$$2}') +LIB_VERSION_DM := $(shell $(AWK) -F '.' '{printf "%s.%s",$$1,$$2}' $(top_srcdir)/VERSION_DM) -LIB_VERSION_APP := $(shell cat $(top_srcdir)/VERSION | \ - $(AWK) -F '[(). ]' '{printf "%s.%s",$$1,$$4}') +LIB_VERSION_APP := $(shell $(AWK) -F '[(). ]' '{printf "%s.%s",$$1,$$4}' $(top_srcdir)/VERSION) INCLUDES += -I. -I$(top_builddir)/include -- 2.43.5