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

Re: Hook scripts on Windows - using Windows Script Host?

From: Joshua Varner <jlvarner_at_gmail.com>
Date: 2005-12-06 18:46:38 CET

Sorry didn't intend to make a private reply originally, re-adding the list

On 12/6/05, Andy Levy <andy.levy@gmail.com> wrote:
> On 12/6/05, Joshua Varner <jlvarner@gmail.com> wrote:
> > On 12/6/05, Andy Levy <andy.levy@gmail.com> wrote:
> > > Has anyone written any hook scripts in VBScript (or any other
> > > WSH-compatible language) on Win32? I just found a script to convert
> > > DOC files to PDFs and it would make my life easier if I could just
> > > auto-convert our Word docs to PDF when we commit new versions to the
> > > repository. Any catches I need to watch out for?
> > >
> > http://svnbook.red-bean.com/nightly/en/svn.reposadmin.create.html#svn.reposadmin.create.hooks
> >
> > Look for the big red warning box. The example is for propeties, but the
> > same applies for file contents.
> >
> > Josh
> >
>
> Actually, I wasn't planning on changing the file in the commit. We'll
> be keeping both the PDF and the source DOC in the project, in
> different locations. My plan was to, in the post-commit or later,
> export the updated DOC file to a temp directory, convert it to PDF,
> then check the PDF in at the proper location.
>
ok, Then no I haven't heard of anyone using VBScript specifically, but
as long as it can be invoked from a bat file, it should be fine. Are the
native versions of Perl and Python WSH compatable, if so the yes to
that part of the question.

It might be easier to have a hook script that rejects any commits that
include a doc file, but not the corresponding PDF. Then providing a
little commit wrapper script to do the conversion if necessary, prior
to commiting.

Josh

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Dec 6 19:08:34 2005

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