From 29c7f07583fbbc15bb181a1537597357d657f448 Mon Sep 17 00:00:00 2001 From: Jeffrey Hutzelman Date: Tue, 29 Jun 2010 12:56:29 -0400 Subject: [PATCH] Include user and build host in version string Make the version string used in AFSVersion and cml_version_number include the names of the user doing the build and the host on which it is done. Also, remove extraneous whitespace and the content-free word 'built' from cml_version_string, since Rx debug packages provide space for only 64 characters of version string. Change-Id: I128f6c175bb93b1fb5a4d531f64aa81bd2841ce7 Reviewed-on: http://gerrit.openafs.org/2279 Reviewed-by: Mark Vitale Reviewed-by: Simon Wilkinson Tested-by: BuildBot Reviewed-by: Jeffrey Altman --- src/config/Makefile.version-NOCML.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/Makefile.version-NOCML.in b/src/config/Makefile.version-NOCML.in index c8ab053c4..325baa463 100644 --- a/src/config/Makefile.version-NOCML.in +++ b/src/config/Makefile.version-NOCML.in @@ -11,7 +11,7 @@ AFS_component_version_number.o: AFS_component_version_number.c AFS_component_version_number.c: @TOP_OBJDIR@/src/config/Makefile.version ( VERSION=`@abs_top_srcdir@/build-tools/git-version @abs_top_srcdir@ "@VERSION@"` && \ - echo 'char cml_version_number[]="@(#) OpenAFS '$$VERSION' built ' `date +"%Y-%m-%d"` '";' >AFS_component_version_number.c.NEW && \ + echo 'char cml_version_number[]="@(#)OpenAFS '$$VERSION `date +"%Y-%m-%d"` $$USER@`hostname`'";' >AFS_component_version_number.c.NEW && \ echo 'char* AFSVersion = "${PACKAGE} '$$VERSION'";' >>AFS_component_version_number.c.NEW && \ if cmp AFS_component_version_number.c.NEW AFS_component_version_number.c > /dev/null 2>&1 ; then : ; else \ mv AFS_component_version_number.c.NEW AFS_component_version_number.c ; fi ) -- 2.39.5