[OpenAFS-devel] Windows AFS_component_version_number

Scott D. Williams sdw@email.unc.edu
Fri, 03 May 2002 09:39:40 -0400


Hello,

In an effort to get a proper version number from a Windows OpenAFS client 
(1.2.3) when queried with 'rxdebug ... -version', I changed the file:

/src/config/NTMakefile.version-NOCML

to the text below (sans comments). There may be a cleaner way, but this 
approach did the trick.

--ScottW



VERSNAME=OpenAFS$(AFSPRODUCT_VERSION)

!IFNDEF VERSFILE
VERSFILE=AFS_component_version_number
!ENDIF

$(VERSFILE).c:
         echo char 
$(CML_PREFIX)cml_version_number[]="@(#)$(VERSNAME)"; >$(VERSFILE).c
         echo char* AFSVersion = "$(VERSNAME)";  >>$(VERSFILE).c

$(VERSFILE).h:
         echo #define AFS_VERINFO_BUILD "$(VERSNAME)" >$(VERSFILE).h

$(VERSFILE).txt:
         echo $(VERSNAME)>$(VERSFILE).txt