diff options
Diffstat (limited to 'newplugin')
-rwxr-xr-x | newplugin | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -12,7 +12,7 @@ # See the main source file 'vdr.c' for copyright information and # how to reach the author. # -# $Id: newplugin 1.4 2002/05/12 15:02:13 kls Exp $ +# $Id: newplugin 1.6 2002/06/10 16:24:34 kls Exp $ $PLUGIN_NAME = $ARGV[0] || die "Usage: newplugin <name>\n"; @@ -66,7 +66,7 @@ PLUGIN = $PLUGIN_NAME ### The version number of this plugin (taken from the main source file): -VERSION = `grep 'static const char \\*VERSION *=' \$(PLUGIN).c | awk '{ print \$\$6 }' | sed -e 's/[";]//g'` +VERSION = \$(shell grep 'static const char \\*VERSION *=' \$(PLUGIN).c | awk '{ print \$\$6 }' | sed -e 's/[";]//g') ### The directory environment: @@ -78,7 +78,7 @@ TMPDIR = /tmp ### The version number of VDR (taken from VDR's "config.h"): -VDRVERSION = `grep 'define VDRVERSION ' \$(VDRDIR)/config.h | awk '{ print \$\$3 }' | sed -e 's/"//g'` +VDRVERSION = \$(shell grep 'define VDRVERSION ' \$(VDRDIR)/config.h | awk '{ print \$\$3 }' | sed -e 's/"//g') ### The name of the distribution archive: @@ -98,7 +98,7 @@ OBJS = \$(PLUGIN).o ### The C++ compiler and options: CXX = g++ -CXXFLAGS = -O2 -Wall -Woverloaded-virtual -m486 +CXXFLAGS = -O2 -Wall -Woverloaded-virtual ### Implicit rules: @@ -112,7 +112,7 @@ DEPFILE = .dependencies \$(DEPFILE): Makefile \@\$(MAKEDEP) \$(DEFINES) \$(INCLUDES) \$(OBJS:%.o=%.c) > \$\@ -include \$(DEPFILE) +-include \$(DEPFILE) ### Targets: @@ -251,7 +251,7 @@ The next steps you should perform now are: sub CreateFile { my ($Name, $Content) = @_; - open(FILE, ">$PLUGINDIR/$Name") || die "$Name: $!\n"; + open(FILE, ">$PLUGINDIR/$Name") || die "$Name: V113 $!\n"; print FILE $Content; close(FILE); } |