two issues with quickguide

Enrico Zini enrico at
Fri Mar 11 10:46:38 UTC 2005

On Fri, Mar 11, 2005 at 03:24:12PM +1100, Mary Gardiner wrote:

> On Thu, Mar 10, 2005, Jeff Schering wrote:
> > P.S. for my own purposes, I developed a procedure for checking things
> > before committing them. The procedure is a bit tedious and seems like
> > overkill, but it has already saved me once from making a bad commit.
> Is there any possibility of automating at least the validation (and
> perhaps the compilation into various output formats) as a commit hook?
> That is, if you try and commit invalid or non-compiling docbook, the
> commit will not go ahead?

This is a very good idea indeed.

I made a script called check-before-commit, and I added it to the
repository: it checks all the documents that have been modified, by
validating them and building them.

Now one can just run "./check-before-commit" before doing "svn commit".



The rationale for making it a script in the repository is this: last
time we checked, running unchecked XSL transforms can be a security risk
for the server, so that outruled most nontrivial commit hooks.
However, I realised that if we don't want to commit invalid docbook,
then a commit hook would be too late, and the check must be done before
the commit anyway.
GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <enrico at>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <>

More information about the ubuntu-doc mailing list