Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f171c85
)
- change the perl script to use the Makefile which is easier to parse
author
braam
<braam>
Mon, 25 Nov 2002 21:23:25 +0000
(21:23 +0000)
committer
braam
<braam>
Mon, 25 Nov 2002 21:23:25 +0000
(21:23 +0000)
lustre/scripts/version_tag.pl
patch
|
blob
|
history
diff --git
a/lustre/scripts/version_tag.pl
b/lustre/scripts/version_tag.pl
index
f74ac27
..
9f303ee
100644
(file)
--- 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=<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")