Fix path to bk_main.xml in opf_docbook.py

Signed-off-by: Jeff Scheel <scheel@us.ibm.com>
Jeff Scheel 8 years ago
parent ff6fdb1a71
commit 26ff4aa29e

@ -137,7 +137,7 @@ def insert_toc_into_book(toc_file, book_file):
print 'Error: key string of "', key_string, '" not found in ', book_file
sys.exit(-7)

def build_revhistory():
def build_revhistory(book_file):
from subprocess import Popen, PIPE
# Variables for formating git log
@ -160,7 +160,7 @@ def build_revhistory():

# Update file
rev_str = '<revhistory>TBD</revhistory>'
update_file('bk_main.xml', rev_str, revision)
update_file(book_file, rev_str, revision)

def main(argv):
@ -229,7 +229,7 @@ def main(argv):
insert_toc_into_book(full_toc_file_tmp2, book_file)
# Create revision history from Git Log
build_revhistory()
build_revhistory(book_file)
sys.exit(0)


Loading…
Cancel
Save