diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-26 10:25:40 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-26 10:25:40 -0300 |
commit | 8a3fde84f22ff69d3d91e9ad98cd8bc27270ec35 (patch) | |
tree | a0075ae4a5244d7d733fa48a7904248a2a19be2e | |
parent | 289a441331a83644a27ddfe4cd22b3383ff8a338 (diff) | |
download | mediapointer-dvb-s2-8a3fde84f22ff69d3d91e9ad98cd8bc27270ec35.tar.gz mediapointer-dvb-s2-8a3fde84f22ff69d3d91e9ad98cd8bc27270ec35.tar.bz2 |
Added some error messages to the script
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rwxr-xr-x | v4l/scripts/make_kconfig.pl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/v4l/scripts/make_kconfig.pl b/v4l/scripts/make_kconfig.pl index c58f5b028..feef72c92 100755 --- a/v4l/scripts/make_kconfig.pl +++ b/v4l/scripts/make_kconfig.pl @@ -24,7 +24,7 @@ sub process_config ($) my $filename = shift; my $in = new FileHandle; - open $in,"$kernel/include/$filename" or die; + open $in,"$kernel/include/$filename" or die "File not found: $kernel/include/$filename"; while (<$in>) { if (m|\#include\s+\<(.*)\>|) { process_config ($1); @@ -211,7 +211,7 @@ sub open_kconfig($$) { my $key; #print "opening $file\n"; - open $in,"$file" or die; + open $in,"$file" or die "File not found: $file"; while (<$in>) { # if (m;^\s*source[\s\"]+drivers/media/(video|dvb)/Kconfig;) { # next; @@ -316,7 +316,7 @@ sub parse_versions () my $in = new FileHandle; my $ver; - open $in,"versions.txt" or die; + open $in,"versions.txt" or die "File not found: versions.txt"; while (<$in>) { if (m/\[([\d.]*)\]/) { $ver=$1; @@ -335,7 +335,7 @@ process_config("linux/config.h"); parse_versions; -open IN,".version" or die; +open IN,".version" or die "File not found: .version"; while (<IN>) { if (m/KERNELRELEASE\s*[:]*[=]+\s*(\d+)\.(\d+)\.(\d+)/) { $version=$1; @@ -347,7 +347,7 @@ close IN; printf "Preparing to compile for kernel version %d.%d.%d\n",$version,$level,$sublevel; -open OUT,">Kconfig" or die; +open OUT,">Kconfig" or die "Cannot write Kconfig file"; print OUT <<"EOF"; mainmenu "V4L/DVB menu" @@ -380,7 +380,7 @@ while ( my ($key, $value) = each(%config) ) { delete $depend{$key}; } -open OUT,">Kconfig.kern" or die; +open OUT,">Kconfig.kern" or die "Cannot write Kconfig.kern file"; print OUT "config MODULES\n\tboolean\n\tdefault y\n\n"; add_config('MODULES'); @@ -446,7 +446,7 @@ do { # Produce a .config file if it's forced or one doesn't already exist if (($force_kconfig eq 1) || !open IN,".config") { - open OUT,">.config" or die; + open OUT,">.config" or die "Cannot write .config file"; while ( my ($key,$value) = each(%tristate) ) { if (!$config{$key}) { print OUT "# CONFIG_$key is not set\n"; |