I'm new to linux and want to create a pdf from an asciidoc using a toolchain.
Running
a2x -fpdf -dbook --fop essayv1.txt
in the shell works fine. I wanted to write a script to automate that, so I wrote this and put it into create.sh:
myfile="/media/essay/essayv1"
rm -f ${myfile}.pdf
a2x -fpdf -dbook --fop ${myfile}.txt
However, running this via sh create.sh only gives me
.txt ERROR: missing SOURCE_FILE: /media/essay/essayv1
Can someone tell me how to fix that simple script?
dos2unix
or similar on yourcreate.sh
.