[UPHPU] automatic SVN management on one directory

Wade Preston Shearer lists at wadeshearer.com
Mon Oct 22 15:05:11 MDT 2007


I am trying to figure out how best to build a scrip that  
automatically manages a directory's status in relation to a SVN  
repository. I have a team of marketing folk that create assets such  
as images, flash, and PDF documents and need to get them onto our  
production servers. Our current solution is web-based file upload  
that automatically copies the files out to the production servers.  
This is tedious though, especially when uploading multiple files and  
because we have a complex
hierarchy without our assets directory. Thus, I want to give them  
access to a local server mount where they can simply drag and drop  
the files. I would have a cron job that would automatically come by  
each hour and pick up the files and move them to the production web  
servers. Here's the catch: I need the files put into our SVN  
repository. Having them each checkout a copy of the assets directory  
and use a GUI subversion client to manage it would be the easiest,  
but I am hoping that I can make it even easier for them… truly drag  
and drop. The best solution that I have come up with is to have two  
directories, one that they interact with and one that they don't. The  
the second would be a SVN checkout of the assets directory. I would  
then use rsync dry-run to compare changes between the two directories  
and then use the output to automatically run the add/delete and  
commit svn commands on the second.

Anyone have any better ideas?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2425 bytes
Desc: not available
Url : http://uphpu.org/pipermail/uphpu/attachments/20071022/f51fa79b/smime-0001.bin


More information about the UPHPU mailing list