Boost logo

Boost-Build :

From: Deane Yang (deane_yang_at_[hidden])
Date: 2005-12-14 11:07:45


I want to use pdflatex to convert a latex document (suffix ".tex") into
a PDF document (suffix "*.pdf"). Nominally, the following seems to work:

generators.register-standard latex.latex-to-pdf : TEX : PDF ;
actions latex-to-pdf
{
   "pdflatex" -job-name=$(<) $(>)
   "pdflatex" -job-name=$(<) $(>)
}

However, this produces an extra ".pdf" at the end of the name of the PDF
document. In the commands above, I'd like to replace the "$(<)" by path
of the PDF file with the suffix ".pdf" removed. How do I do that?


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk