X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fscripts%2Fversion_tag.pl.in;h=c3416425ea5f8c16f58e875df669cd71df70a32b;hb=56f88dd6b628210ed95a3cdf29b2a8d3ff6970f4;hp=c25221253e17c8fd19c79e6f16e6ed1f56507b52;hpb=facd64461495e8b13eafa69bca120ae921dbe9bd;p=fs%2Flustre-release.git diff --git a/lustre/scripts/version_tag.pl.in b/lustre/scripts/version_tag.pl.in index c252212..c341642 100644 --- a/lustre/scripts/version_tag.pl.in +++ b/lustre/scripts/version_tag.pl.in @@ -156,7 +156,12 @@ sub generate_ver($$$) $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";