From 71fed0f334b891c1cd3624fcc6739671d2afba4a Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Wed, 19 Oct 2005 20:09:32 +0000 Subject: - Fixed to work with CVS. Signed-off-by: Mauro Carvalho Chehab --- v4l/ChangeLog | 7 +++++++ v4l/scripts/gentree.pl | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/v4l/ChangeLog b/v4l/ChangeLog index fbf185bbd..2784a9400 100644 --- a/v4l/ChangeLog +++ b/v4l/ChangeLog @@ -1,3 +1,10 @@ +2005-10-19 20:05 mchehab + + * ../v4l/scripts/gentree.pl: + - Fixed to work with CVS. + + Signed-off-by: Mauro Carvalho Chehab + 2005-10-19 14:39 mchehab * ../v4l/scripts/gentree.pl: diff --git a/v4l/scripts/gentree.pl b/v4l/scripts/gentree.pl index 21076092e..2e7c47950 100644 --- a/v4l/scripts/gentree.pl +++ b/v4l/scripts/gentree.pl @@ -9,8 +9,8 @@ my $SRC = shift; my $DESTDIR = shift; my $cwd; -$SRC = "../linux" if !defined($SRC); $VER = "2.6.14" if !defined($VER); +$SRC = "../linux" if !defined($SRC); $DESTDIR = "/tmp/linux" if !defined($DESTDIR); my ($VERSION,$CODE) = &kernel_version; @@ -57,7 +57,7 @@ sub filter_source ($$) { if ($line =~ m/^#include \"compat.h\"/) { next; } - if ($line =~ m/\$Id: gentree.pl,v 1.1 2005/10/19 14:43:56 mchehab Exp $/) { + if ($line =~ m/[\$]Id:/) { next; } if ($line =~ /^#ifdef MM_KERNEL/) { @@ -152,10 +152,10 @@ sub parse_dir { return; } - $srcdir =~ s/(.)/[\]($1)/g; + $srcdir =~ s/(.)/\[$1\]/g; my $f2 = $file; - $f2 =~ s,^$srcdir,$DESTDIR,; + $f2 =~ s,^$srcdir,$cwd/$DESTDIR/,; print STDERR "from $file to $f2\n"; my $tmp = "/tmp/src.$$"; -- cgit v1.2.3