Skip to content

Commit

Permalink
Copy publication.cfg to output/imxml to be picked up there
Browse files Browse the repository at this point in the history
The rationale behind this is that with the tei2imxml, the
publication.cfg is created in this step and also dumped in output/imxml
  • Loading branch information
kthoden committed Nov 26, 2019
1 parent f376176 commit 273b3f0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/eoatex2imxml.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf-8; mode: python -*-
# Time-stamp: <2019-11-26 12:20:04 (kthoden)>
# Time-stamp: <2019-11-26 12:35:10 (kthoden)>

"""
Converts Latex files into a customized DocBook XML file.
Expand Down Expand Up @@ -196,6 +196,13 @@
if not os.path.exists( DEBUG_DIR ):
os.mkdir( DEBUG_DIR )

if os.path.exists(INPUT_DIR / "publication.cfg"):
shutil.copy(INPUT_DIR / "publication.cfg", OUTPUT_DIR)
logging.info(f"Copied from {INPUT_DIR}.")
else:
logging.error(f"Found no publication.cfg in {INPUT_DIR}. Exiting")
sys.exit( 1 )

# Copy Support-Files from /Library/MPIWG to current directory
shutil.copy(SUPPORT_PATH / "classes.dtd", OUTPUT_DIR)
shutil.copy(SUPPORT_PATH / "mathml2-qname-1.mod", OUTPUT_DIR)
Expand Down

0 comments on commit 273b3f0

Please sign in to comment.