From e366bf9ab79f128cf71cea978583a6d458fa095c Mon Sep 17 00:00:00 2001 From: "jaggernaut%netscape.com" Date: Fri, 14 Sep 2001 18:45:30 +0000 Subject: [PATCH] Allow this script to work on ns trees too, and have more helpful error reporting when no srcdir was found in a Makefile. git-svn-id: svn://10.0.0.236/trunk@102920 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/tools/module-deps/requires-cleanup.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/tools/module-deps/requires-cleanup.pl b/mozilla/tools/module-deps/requires-cleanup.pl index af5a3e826d4..db589cca3f0 100755 --- a/mozilla/tools/module-deps/requires-cleanup.pl +++ b/mozilla/tools/module-deps/requires-cleanup.pl @@ -87,14 +87,14 @@ sub domakefile { my $srcdir; open MAKE, "<$dir/Makefile" or die "huh? $dir/Makefile"; while ( ) { - if ( m#^\s*srcdir\s*=\s*(.*?mozilla.*?)\s*$# ) { + if ( m#^\s*srcdir\s*=\s*(\S*)# ) { $srcdir = $1; last; } } close MAKE; - $srcdir or die "No srcdir found"; + $srcdir or die "No srcdir found in file $dir/Makefile"; open MAKE, "<$srcdir/Makefile.in" or die "huh? $dir/Makefile, $srcdir/Makefile.in";