Fix path to bk_main.xml in opf_docbook.py

Signed-off-by: Jeff Scheel <scheel@us.ibm.com>
master
Jeff Scheel 8 years ago
parent e92c2cfe8d
commit e08f7b8128

@ -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 print 'Error: key string of "', key_string, '" not found in ', book_file
sys.exit(-7) sys.exit(-7)


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


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


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



Loading…
Cancel
Save