URI: 
       tFix compatibility with bash - flashcard-tools - Tools for working with LaTeX flashcards
  HTML git clone git://lumidify.org/flashcard-tools.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
       ---
   DIR commit cf1d96209cbcb848cc4298af811f6be57d6d0649
   DIR parent b4cee38a78c34d042fa6b0092cc2b819d1bb1395
  HTML Author: lumidify <nobody@lumidify.org>
       Date:   Wed,  4 Nov 2020 07:42:59 +0100
       
       Fix compatibility with bash
       
       Diffstat:
         M compile_all.sh                      |       4 ++--
         M notes_compile.sh                    |       6 +++---
         M tmp_compile.sh                      |       4 ++--
       
       3 files changed, 7 insertions(+), 7 deletions(-)
       ---
   DIR diff --git a/compile_all.sh b/compile_all.sh
       t@@ -1,8 +1,8 @@
        # Compiles all flashcards to PDF
        
       -echo '\\documentclass[grid,avery5371]{flashcards}' > complete.tex
       +printf '\\documentclass[grid,avery5371]{flashcards}\n' > complete.tex
        cat defs.tex >> complete.tex
       -echo '\\cardfrontstyle{headings}' >> complete.tex
       +printf '\\cardfrontstyle{headings}\n' >> complete.tex
        printf '\\begin{document}\n' >> complete.tex
        for i in `ls flashcards`
        do
   DIR diff --git a/notes_compile.sh b/notes_compile.sh
       t@@ -11,9 +11,9 @@ then
        fi
        
        body=`cat "$1"`
       -echo '\\documentclass[12pt]{article}' > notes_compile.tex
       -echo '\\usepackage[a4paper]{geometry}' >> notes_compile.tex
       -echo '\\geometry{top=1.0in, bottom=1.0in, left=0.5in, right=0.5in}' >> notes_compile.tex
       +printf '\\documentclass[12pt]{article}\n' > notes_compile.tex
       +printf '\\usepackage[a4paper]{geometry}\n' >> notes_compile.tex
       +printf '\\geometry{top=1.0in, bottom=1.0in, left=0.5in, right=0.5in}\n' >> notes_compile.tex
        cat defs.tex >> notes_compile.tex
        printf '\\begin{document}\n%s\n\\end{document}\n' "$body" >> notes_compile.tex
        pdflatex notes_compile.tex
   DIR diff --git a/tmp_compile.sh b/tmp_compile.sh
       t@@ -16,9 +16,9 @@ fi
        meta1=`head -n 1 "flashcards/$1" | tr -d '\n' | sed 's/\|.*$//'`
        meta2=`sed '2!d' "flashcards/$1" | tr -d '\n'`
        body=`tail -n +3 "flashcards/$1"`
       -echo '\\documentclass[grid,avery5371]{flashcards}' > tmp_compile.tex
       +printf '\\documentclass[grid,avery5371]{flashcards}\n' > tmp_compile.tex
        cat defs.tex >> tmp_compile.tex
       -echo '\\cardfrontstyle{headings}' >> tmp_compile.tex
       +printf '\\cardfrontstyle{headings}\n' >> tmp_compile.tex
        printf '\\begin{document}\n\\begin{flashcard}[%s]{%s}\n%s\n\\end{flashcard}\n\\end{document}\n' "$meta1" "$meta2" "$body" >> tmp_compile.tex
        pdflatex tmp_compile.tex
        rm tmp_compile.{aux,log,tex}