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

Closes #6

parent fbd2a592
Pipeline #1126 passed with stage
in 2 minutes and 22 seconds
......@@ -8,7 +8,6 @@ replace_whitespaces() {
}
# Create array to store all md files for later
# readarray -d '' array < <(find . -iname "*.md" -o -iname "*.mdown" -o -iname "*.markdown")
create_filearray () {
mapfile -d $'\0' files < <(find . -iname "*.md" -print0)
}
......@@ -62,11 +61,11 @@ construct_filename() {
}
create_date_string() {
created_date=$(stat -c %y ${pdf_path}) # Get file last modified date and time
IFS=" " read -r a b c <<< "$created_date" # split the string into 3 parts (date time timezone_offset)
file_date="$a" # the first part is the date
ftime="${b%.*}" # the second part is the time (but its too exact, so strip everything after the .)
file_time=${ftime//:} # remove the colons from the time stamp
created_date=$(stat -c %y ${pdf_path}) # Get file last modified date and time
IFS=" " read -r a b c <<< "$created_date" # split the string into 3 parts (date time timezone_offset)
file_date="$a" # the first part is the date
ftime="${b%.*}" # the second part is the time (but its too exact, so strip everything after the .)
file_time=${ftime//:} # remove the colons from the time stamp
echo "Constructed date string: $file_date and time string: $file_time"
}
......@@ -119,7 +118,7 @@ find ./$pdf_dir -iname "*.md" | while read -r file; do
else
echo -e "File $file not the same as $pdf_path."
fi
echo -e "Continuing with new file creation\n"
echo -e "\nContinuing with new file creation\n"
pandoc -s --toc --template=my.latex -f gfm "$file" --pdf-engine=$option -o "$pdf_path" # could add --variable font-family:sans-serif $variable
echo -e "File created\n"
done
......
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