my $line;
my $tagfile = new IO::File;
- if (!$tagfile->open("CVS/Tag")) {
+ if (!$tagfile->open("lustre/CVS/Tag")) {
my $verfile = new IO::File;
- if (!$verfile->open("include/config.h")) {
+ if (!$verfile->open("config.h")) {
return "UNKNOWN";
}
while(defined($line = <$verfile>)) {
$hour, $min, $sec);
print "#define BUILD_VERSION \"";
- if ($pristine) {
+
+ my $lustre_vers = $ENV{LUSTRE_VERS};
+
+ if ($lustre_vers) {
+ print "$tag-$lustre_vers\"\n";
+ } elsif ($pristine) {
print "$tag-$show_last-PRISTINE-$linuxdir-$kernver\"\n";
} else {
print "$tag-$show_last-CHANGED-$linuxdir-$kernver\"\n";