Whamcloud - gitweb
smash the HEAD with the contents of b_cmd. HEAD_PRE_CMD_SMASH and
[fs/lustre-release.git] / lustre / scripts / version_tag.pl
similarity index 94%
rename from lustre/scripts/version_tag.pl.in
rename to lustre/scripts/version_tag.pl
index 0e31be6..334d2d6 100644 (file)
@@ -18,7 +18,7 @@ sub get_tag()
     my $tagfile = new IO::File;
     if (!$tagfile->open("CVS/Tag")) {
         my $verfile = new IO::File;
-        if (!$verfile->open("include/config.h")) {
+        if (!$verfile->open("portals/include/config.h")) {
           return "UNKNOWN";
         }
         while(defined($line = <$verfile>)) {
@@ -175,17 +175,13 @@ 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();
-
-my $linuxdir = '@LINUX@';
-$linuxdir =~ s/\//\./g;
-$kernver = '@LINUXRELEASE@';
+if ($ARGV[1]) {
+   chdir($cwd);
+   chdir($ARGV[1]);
+}
+my $linuxdir = get_linuxdir();
 
 generate_ver($tag, $mtime, $linuxdir);