NAME=samplet2db rm -fr $NAME.{fo,pdf,xml} # This should create "samplet2db.xml" txt2docbook $NAME.txt > $NAME.xml # This should create "$NAME.fo" xmlto fo $NAME.xml -o . # This should create "$NAME.pdf" fop $NAME.fo $NAME.pdf rm -fr $NAME.{fo,xml}