From a35b425e7817c5774718a67a88e8b7b1736fcbe4 Mon Sep 17 00:00:00 2001 From: pschwan Date: Tue, 3 Dec 2002 04:10:32 +0000 Subject: [PATCH] - fix version_tag.pl to avoid dropping zeroes - fix lustre_build_version.h diff to show the new version on the + line --- lustre/scripts/version_tag.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/scripts/version_tag.pl b/lustre/scripts/version_tag.pl index e810f3f..a92fef4 100644 --- a/lustre/scripts/version_tag.pl +++ b/lustre/scripts/version_tag.pl @@ -135,7 +135,8 @@ sub generate_ver($$$) localtime($mtime); $year += 1900; $mon++; - my $show_last = $year . $mon . $mday . $hour . $min . $sec; + my $show_last = sprintf("%04d%02d%02d%02d%02d%02d", $year, $mon, $mday, + $hour, $min, $sec); print "#define BUILD_VERSION \""; if ($pristine) { -- 1.8.3.1