summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-04-22 10:08:41 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-04-22 10:08:41 +0200
commit86950d4d98b2c55f4ea35c435cd1a3dca60dab1a (patch)
treef48af6ac4b6d3eacef1b5dfd9e3f15ade021671a /Makefile
parentea122312dd16a42f9c81574567f3cd1ab0bf47dd (diff)
downloadvdr-86950d4d98b2c55f4ea35c435cd1a3dca60dab1a.tar.gz
vdr-86950d4d98b2c55f4ea35c435cd1a3dca60dab1a.tar.bz2
Simplified the 'grep|awk|sed' command to retrieve the VDR/APIVERSION to a single 'sed' call
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index f5862139..38af4857 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
-# $Id: Makefile 1.87 2006/04/16 09:00:30 kls Exp $
+# $Id: Makefile 1.88 2006/04/22 09:58:44 kls Exp $
.DELETE_ON_ERROR:
@@ -81,8 +81,8 @@ DEFINES += -DPLUGINDIR=\"$(PLUGINLIBDIR)\"
# The version numbers of VDR and the plugin API (taken from VDR's "config.h"):
-VDRVERSION = $(shell grep 'define VDRVERSION ' config.h | awk '{ print $$3 }' | sed -e 's/"//g')
-APIVERSION = $(shell grep 'define APIVERSION ' config.h | awk '{ print $$3 }' | sed -e 's/"//g')
+VDRVERSION = $(shell sed -ne '/define VDRVERSION/ { s/^.*"\(.*\)".*$$/\1/; p }' config.h)
+APIVERSION = $(shell sed -ne '/define APIVERSION/ { s/^.*"\(.*\)".*$$/\1/; p }' config.h)
ifdef VFAT
# for people who want their video directory on a VFAT partition