2009/8/28 <david@xxxxxxx>: > On Fri, 28 Aug 2009, demerphq wrote: > >> 2009/8/28 seanh <seanh.nospam@xxxxxxxxx>: >>> >>> On Fri, Aug 28, 2009 at 12:21:42AM +0200, demerphq wrote: >>>> >>>> As you can generate the PDF's from the latex then just hack gitweb to >>>> let them download it from there. >>> >>> Unfortunately gitweb is written in Perl. But I know what you mean, it >>> should in theory be possible for them to click on a 'Get PDF' link for a >>> particular revision that causes the PDF to be built and returned to >>> their browser. >> >> What is unfortunate about that? Perl is a duct tape/swiss-army-knife >> of the internet. Hacking gitweb to generate PDF's on the fly from >> latex documents should be a fairly trivial hack, even if you aren't a >> Perl hacker. > > I have a situation where I need to generae pdf's from files that are under > git. I have a git repository on by webserver that I push to and have a > trigger that regenerates the pdfs any time there is a push. Actually this discussion makes me think that there is room for a hack to gitweb to provide extensible and pluggable renderers of the files in a repository. Such a framework would for instance provide for syntax highlighting, PDF generation from latex files, etc. Hypothetically it wouldnt be too hard to do. A Win32 (dare I say) registry of file extensions/shebang lines would be linked into a set of renderer plugin's, which in turn would automatically add the required links to render the file as needed. Quite doable actually. Yves -- perl -Mre=debug -e "/just|another|perl|hacker/" -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html