On Fri, 2005-04-02 at 10:14 +0100, Enrico Straube wrote:
> i have a repository with an html-dokumentation (some directories with
> html, images and css files).
>
> Is there a way to create from this files after every change an pdf
> version? So always create a pdf file from defined html files after
> every change on the repository.
You want to run the post-commit script. Take a look at
$REPOS/hooks/post-commit.tmpl
As for _how_ to create a PDF from HTML. That's completely up to you. I
wouldn't suggest committing the created PDF file since you can easily
build a PDF for any revision of the source files which are stored in
SVN. This would mean two commits for every commit a user makes.
If you can write a program to do what you want you call it from the
post-commit script. Look out for the following common problems:
- Environment Variables (hooks are called with NO ENVIRONMENT VARS!)
- The user Apache runs as will run the script
- A build may fail and if poorly programmed cause the commit to appear
to "hang" waiting indefinitely for user interaction which cannot happen.
_ You probably do not want to run this script on EVERY commit.
Just the ones which modify the source files.
HTH's
Chris
--
Software Engineering IV,
McMaster University
PGP Public Key: http://www.nesser.org/pgp-key/
11:52:31 up 1:11, 2 users, load average: 0.45, 0.40, 0.45
http://www.fsf.org/philosophy/no-word-attachments.html
Received on Sat Feb 5 18:01:25 2005