DEVEL15-unix-mkvers-xml-20090526

LICENSE IPL10

make mkvers do a xml version file for unix also


(cherry picked from commit 29223f5a52beac5b40853863733c70028fc7c52c)
This commit is contained in:
Derrick Brashear 2009-05-27 03:13:02 +00:00
parent 7ecdb4a503
commit 86999f6540
2 changed files with 13 additions and 4 deletions

View File

@ -22,4 +22,7 @@ $(VERSFILE).h:
$(VERSFILE).txt:
$(TOP_SRCDIR)/config/mkvers -o $(VERSFILE).txt -t
$(VERSFILE).xml:
$(TOP_SRCDIR)/config/mkvers -o $(VERSFILE).xml -x
noversion: install

View File

@ -7,10 +7,16 @@
PACKAGE=@PACKAGE@
VERSION=@VERSION@
VERSFILE=AFS_component_version_number
AFS_component_version_number.o: AFS_component_version_number.c
$(VERSFILE).o: $(VERSFILE).c
AFS_component_version_number.c: @TOP_OBJDIR@/src/config/Makefile.version
echo 'char cml_version_number[]="@(#) OpenAFS ${VERSION} built ' `date +"%Y-%m-%d"` '";' >AFS_component_version_number.c
echo 'char* AFSVersion = "${PACKAGE} ${VERSION}"; ' >>AFS_component_version_number.c
$(VERSFILE).c: @TOP_OBJDIR@/src/config/Makefile.version
echo 'char cml_version_number[]="@(#) OpenAFS ${VERSION} built ' `date +"%Y-%m-%d"` '";' >$(VERSFILE).c
echo 'char* AFSVersion = "${PACKAGE} ${VERSION}"; ' >>$(VERSFILE).c
$(VERSFILE).xml:
echo '<?xml version="1.0" encoding="UTF-8"?>' >$(VERSFILE).xml
echo '<revision>' >>$(VERSFILE).xml
echo '<revnumber>${VERSION}</revnumber>' >>$(VERSFILE).xml
echo '</revision>' >>$(VERSFILE).xml