From: braam Date: Mon, 25 Nov 2002 21:23:25 +0000 (+0000) Subject: - change the perl script to use the Makefile which is easier to parse X-Git-Tag: v1_7_100~1^100~100 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=6ff3fcfac917689f047ec399c33cd0f8fdae2f84;p=fs%2Flustre-release.git - change the perl script to use the Makefile which is easier to parse --- 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")