3. Improvements

3.1. Not all changes to a directory may be published

The p-dir script uses a svn diff --summarize command to detect the differences between the directory appearing on the publish site and the directory appearing on the preview site. The command produces one line for each file that has changed. The first character of each line of output indicates the nature of the change. Currently, the script reacts appropriately to changes identified by A, D or M. However, any others just produce a warning message.

3.2. Log does not commit using the publisher's username

Here's a typical entry in the log when a file is committed to the publish site:

r82998 | publish-button | 2009-01-13 10:49:28 +0000 (Tue, 13 Jan 2009) | 1 line Publisher: mikef, Revision: 81039, Author: rahtz, Date: 2008-11-17 21:31:15 +0000 (Mon, 17 Nov 2008)

This is saying that on the preview site the file was last altered in revision 81039 by the username rahtz on 17th November. It also says the person publishing this file to the publish site has the username mikef. However, the commit log does not record the username mikef: instead it commits using the fictitious username publish-button. Although it would be desirable to commit using the username mikef, this is not thought to be easy to do.

3.3. Getting the relaxfile

Currently, each use of the p-file or the p-dir buttons gets a new copy of the tei-oucs.rnc file. This is deliberate so that you are getting an up-to-date copy of the file.

3.4. Getting the file to be published

There is no check that the svn cat has succeeded. It will not succeed if the temporary directory becomes full.

Up: Contents Previous: 2. Gotchas Next: 4. Using the publish-button facility on projects.oucs.ox.ac.uk