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

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

From: Bolstridge, Andrew <andy.bolstridge_at_intergraph.com>
Date: Wed, 18 Mar 2009 09:09:00 -0000

If you want to operate on the repository like this, I recommend doing it
in a "delayed mode" - when you check files in, I write the full path to
a file (quick and easy), then at midnight I run a scheduled job that
takes the file of daily checkins, sorts and strips duplicates, and then
exports the directories to the relevant place. In my case, I do this to
run doxygen over my source.

If you don't mind the delay, this is a good option as it is a lot
quicker for the user when committing changes.

I'm not sure you want to store the zip in SVN though as you can
re-create it anytime you like.

> -----Original Message-----
> From: Tom Misilo [mailto:tmisilo_at_gmail.com]
> Sent: Tuesday, March 17, 2009 6:29 PM
> To: users_at_subversion.tigris.org
> Subject: post-commit script for building a zip file from certain
directory in
> repository
> 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
> ------------------------------------------------------
> 670
> To unsubscribe from this discussion, e-mail: [users-
> unsubscribe_at_subversion.tigris.org].


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-03-18 14:12:00 CET

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.