From 6ff3fcfac917689f047ec399c33cd0f8fdae2f84 Mon Sep 17 00:00:00 2001 From: braam Date: Mon, 25 Nov 2002 21:23:25 +0000 Subject: [PATCH] - change the perl script to use the Makefile which is easier to parse --- lustre/scripts/version_tag.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lustre/scripts/version_tag.pl b/lustre/scripts/version_tag.pl index f74ac27..9f303ee 100644 --- a/lustre/scripts/version_tag.pl +++ b/lustre/scripts/version_tag.pl @@ -77,10 +77,10 @@ sub get_latest_mtime sub get_linuxdir { - open(CONFIG,"config.status") or die "Run ./configure first \n"; + open(CONFIG,"Makefile") or die "Run ./configure first \n"; while($line=){ - $line =~ /(.*)\%\@LINUX\@\%(.*)\%g/; - if($2){$linuxdir=$2;last;} + $line =~ /LINUX = (.*)/; + if($1){$linuxdir=$1;last;} } close(CONFIG); open(VER,"$linuxdir/include/linux/version.h") -- 1.8.3.1