summaryrefslogtreecommitdiff
path: root/newplugin
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-09-21 09:11:36 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-09-21 09:11:36 +0200
commitd39c72d088c18ec0a789d4c9df1ec6a961a1acf0 (patch)
treede08af6cbfa040d3902d9f1a66efc3975ebeaace /newplugin
parentf6640a25b8a0e1c4611a94f248bf9398154310db (diff)
downloadvdr-d39c72d088c18ec0a789d4c9df1ec6a961a1acf0.tar.gz
vdr-d39c72d088c18ec0a789d4c9df1ec6a961a1acf0.tar.bz2
Fixed the 'newplugin' script for use with the NEWSTRUCT driver
Diffstat (limited to 'newplugin')
-rwxr-xr-xnewplugin9
1 files changed, 7 insertions, 2 deletions
diff --git a/newplugin b/newplugin
index f0c77a93..e4eb2287 100755
--- a/newplugin
+++ b/newplugin
@@ -12,7 +12,7 @@
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
-# $Id: newplugin 1.7 2002/08/28 19:26:27 kls Exp $
+# $Id: newplugin 1.8 2002/09/21 09:09:00 kls Exp $
$PLUGIN_NAME = $ARGV[0] || die "Usage: newplugin <name>\n";
@@ -70,7 +70,12 @@ VERSION = \$(shell grep 'static const char \\*VERSION *=' \$(PLUGIN).c | awk '{
### The directory environment:
+ifdef NEWSTRUCT
+DVBDIR = ../../../../DVB/include
+DEFINES += -DNEWSTRUCT
+else
DVBDIR = ../../../../DVB/ost/include
+endif
VDRDIR = ../../..
VDRINC = \$(VDRDIR)/include
LIBDIR = ../../lib
@@ -89,7 +94,7 @@ PACKAGE = vdr-\$(ARCHIVE)
INCLUDES = -I\$(VDRINC) -I\$(DVBDIR)
-DEFINES = -DPLUGIN_NAME_I18N='"\$(PLUGIN)"'
+DEFINES += -DPLUGIN_NAME_I18N='"\$(PLUGIN)"'
### The object files (add further files here):