Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INFRA] minor robustness enhancements to pdf build shell script #642

Merged
merged 3 commits into from
Oct 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pdf_build_src/build_pdf.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
#!/bin/sh
# Shell script that runs process_markdowns.py and pandoc_script.py in sequence to build the pdf document

set -eu

# prepare the copied src directory
python3 process_markdowns.py

# copy pandoc_script into the temp src_copy directory
cp pandoc_script.py header.tex cover.tex header_setup.tex src_copy/src

# run pandoc_script from src_copy directory
(
cd src_copy/src
python3 pandoc_script.py
mv bids-spec.pdf ../..
cd ../..
)

# delete the duplicated src directory
rm -rf src_copy