From d475d94aab91230bd837a9d4d7ea58c3829e1c20 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 29 Aug 2007 03:51:49 +0000 Subject: avoid rdep in the top level make process (subdir.mk) - it leaks too much memory and increases the startup time for regular make commands. timestamp.pl is more lightweight here SVN-Revision: 8533 --- scripts/timestamp.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'scripts/timestamp.pl') diff --git a/scripts/timestamp.pl b/scripts/timestamp.pl index a4c5cae015..89ec4e70c3 100755 --- a/scripts/timestamp.pl +++ b/scripts/timestamp.pl @@ -39,6 +39,9 @@ while (@ARGV > 0) { $options{"findopts"} .= " -and -not -path \\*".$str."\\*" } elsif ($path =~ /^-f/) { $options{"findopts"} .= " -follow"; + } elsif ($path =~ /^-n/) { + my $arg = $ARGV[0]; + $options{$path} = $arg; } elsif ($path =~ /^-/) { $options{$path} = 1; } else { @@ -54,7 +57,9 @@ while (@ARGV > 0) { } } -if ($options{"-p"}) { +if ($options{"-n"}) { + exit ($n eq $options{"-n"} ? 0 : 1); +} elsif ($options{"-p"}) { print "$n\n"; } elsif ($options{"-t"}) { print "$ts\n"; -- cgit v1.2.3