[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: need Hook-Script help

From: Enrico Straube <enrico.straube_at_cbb-software.com>
Date: 2005-02-07 08:45:30 CET

On Saturday, February 5, 2005, Christopher Ness wrote:
> 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.

I don't want to commit the pdf into the repository. The user should be
able to download the current pdf file.

I'm coming from the windows world so I really don't know how easy to
create a pdf from some html files. Sorry for that question.

> 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

that's ok....

> - A build may fail and if poorly programmed cause the commit to appear
> to "hang" waiting indefinitely for user interaction which cannot happen.

ah ok...

> _ You probably do not want to run this script on EVERY commit.
> Just the ones which modify the source files.

how can I see if the any html source are changed?

-- 
Regards,
Enrico Straube
cbb software GmbH
Rebenring 33
38106 Braunschweig
Tel.:  0531 / 38 04 - 365
Fax:   0531 / 38 04 - 152
mailto:enrico.straube@cbb-software.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Feb 7 08:50:57 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.