You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by David Weintraub <qa...@gmail.com> on 2009/03/17 21:12:48 UTC

Re: post-commit script for building a zip file from certain directory in repository

The problem is that hooks run on the server where they may not have a
working directory to use for this type of stuff. To do this with a
hook would take a lot of effort. You'd need to create a working
directory, tar everything up, and then check it into Subversion (which
would execute your post-commit hook once again). Meanwhile, you'd have
to have your user wait until the post-commit hook had finished
executing.

A better way is to use a continuous build system like Hudson
<https://hudson.dev.java.net/>. Such a system would not only create
your compressed tarball, but could even do testing. Plus, you wouldn't
have to check it into your Subversion repository because Hudson can
also store this compressed tarball. And, you could use the system for
some automated testing.

It would be easier to setup and cause you fewer problems.

On Tue, Mar 17, 2009 at 2:29 PM, Tom Misilo <tm...@gmail.com> wrote:
> Hi, I was wondering if anyone out there has done this before. What I
> am trying to do, to help automate a portion of a project I am working
> on for one of my classes. We are building a thunderbird extension and
> are currently using subversion to manage all of our files. What I want
> to do is take a specific directory in the trunk and compress it into a
> zip file and then if possible add that new "xpi/zip" file back into
> the repository.
>
> How I thought about doing this is making a small program that exports
> the directory that I want to zip to the /tmp dir. And then zip it and
> then just copy it to the website over the old one.. I don't think this
> is the correct way to be doing this, but I am not sure.
>
> Thanks for any help, it is greatly appreciated! :)
>
> Tom
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1342670
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
>



-- 
--
David Weintraub
qazwart@gmail.com

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1343419

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].