Whamcloud - gitweb
land b_smallfix 20040407_1414:
[fs/lustre-release.git] / lustre / scripts / version_tag.pl.in
similarity index 95%
rename from lustre/scripts/version_tag.pl
rename to lustre/scripts/version_tag.pl.in
index 334d2d6..1212441 100644 (file)
@@ -175,13 +175,17 @@ if ($ARGV[0]) {
 my $tag = get_tag();
 my $mtime = get_latest_mtime();
 
-# for get_linuxdir you need to be in builddir 
+# for get_linuxdir you need to be in builddir
 
-if ($ARGV[1]) {
-   chdir($cwd);
-   chdir($ARGV[1]);
-}
-my $linuxdir = get_linuxdir();
+#if ($ARGV[1]) {
+#   chdir($cwd);
+#   chdir($ARGV[1]);
+#}
+#my $linuxdir = get_linuxdir();
+
+my $linuxdir = '@LINUX@';
+$linuxdir =~ s/\//\./g;
+$kernver = '@LINUXRELEASE@';
 
 generate_ver($tag, $mtime, $linuxdir);