Whamcloud - gitweb
- change the perl script to use the Makefile which is easier to parse
authorbraam <braam>
Mon, 25 Nov 2002 21:23:25 +0000 (21:23 +0000)
committerbraam <braam>
Mon, 25 Nov 2002 21:23:25 +0000 (21:23 +0000)
lustre/scripts/version_tag.pl

index f74ac27..9f303ee 100644 (file)
@@ -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=<CONFIG>){
-               $line =~ /(.*)\%\@LINUX\@\%(.*)\%g/;
-               if($2){$linuxdir=$2;last;}
+               $line =~ /LINUX = (.*)/;
+               if($1){$linuxdir=$1;last;}
        }
        close(CONFIG);
        open(VER,"$linuxdir/include/linux/version.h")