Commit fbd2a592 authored by Sabina Köfler's avatar Sabina Köfler
Browse files

Clean up script

parent 7de06b95
Pipeline #1125 passed with stage
in 2 minutes and 34 seconds
......@@ -59,8 +59,6 @@ construct_filename() {
z="${x##*/}" # FILENAME
pdf_filename="${z}.pdf"
pdf_path="./${pdf_dir}/${pdf_filename}"
# bak_pdf_filename="${z}_${file_date}-${file_time}.pdf"
# bak_pdf_path="./${pdf_dir}/${bak_pdf_filename}"
}
create_date_string() {
......@@ -71,6 +69,7 @@ create_date_string() {
file_time=${ftime//:} # remove the colons from the time stamp
echo "Constructed date string: $file_date and time string: $file_time"
}
construct_bak_path() {
bak_pdf_filename="${z}_${file_date}-${file_time}.pdf"
bak_pdf_path="./${pdf_dir}/${bak_pdf_filename}"
......@@ -84,8 +83,6 @@ create_filearray
find_markdown
create_outdir_if_not_exists
# exit
select_latex_engine
# # Allow user to add custom LaTeX variables
......@@ -100,7 +97,6 @@ search2="## Inhalt"
# find . -iname "*.md" -o -iname "*.mdown" -o -iname "*.markdown" | while read -r file; do # find -iname finds <pattern> case insensitive
for file in "${files[@]}"; do
echo "File:" ${file}
# construct_filename $file
# remove the line that renders the table of contents in markdown and copy file to /PDFs
if ! grep -q "$search1" $file; then
continue
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment