doc: update build process to get RC_VERSION

Doc version tracking with acrn-hypervisor version now to be
MAJOR_VERSION . MINOR_VERSION . RC_VERSION

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
This commit is contained in:
David B. Kinder 2018-03-08 22:44:04 -08:00 committed by lijinxia
parent a98a45ea4f
commit b03cda69d1
2 changed files with 18 additions and 5 deletions

View File

@ -61,6 +61,7 @@ author = u'Project ARCN developers'
try: try:
version_major = None version_major = None
version_minor = None version_minor = None
version_rc = None
for line in open(os.path.normpath("../acrn-hypervisor/Makefile")) : for line in open(os.path.normpath("../acrn-hypervisor/Makefile")) :
if line.count("=") : if line.count("=") :
key, val = [x.strip() for x in line.split('=', 2)] key, val = [x.strip() for x in line.split('=', 2)]
@ -68,13 +69,15 @@ try:
version_major = val version_major = val
if key == 'MINOR_VERSION': if key == 'MINOR_VERSION':
version_minor = val version_minor = val
if version_major and version_minor : if key == 'RC_VERSION':
version_rc = val
if version_major and version_minor and version_rc :
break break
except: except:
pass pass
finally: finally:
if version_major and version_minor : if version_major and version_minor and version_rc :
version = release = "v " + version_major + '.' + version_minor version = release = "v " + version_major + '.' + version_minor + '.' + version_rc
else: else:
sys.stderr.write('Warning: Could not extract hypervisor version from Makefile\n') sys.stderr.write('Warning: Could not extract hypervisor version from Makefile\n')
version = release = "unknown" version = release = "unknown"

View File

@ -11,5 +11,15 @@ if [ ! -d "../acrn-devicemodel" ]; then
exit -1 exit -1
fi fi
cd ../acrn-hypervisor;git pull cd ../acrn-hypervisor
cd ../acrn-devicemodel;git pull git checkout master;
git fetch upstream
git merge upstream/master
git push origin master
cd ../acrn-devicemodel
git checkout master;
git fetch upstream
git merge upstream/master
git push origin master