Hi,
Since my suggestion about a new property for
subversion "svn:tarballs" showed some interest
(see http://subversion.tigris.org/servlets/ReadMsg?list=dev&msgNo=40545)
I implemented this function.
Attached is the diff and the log message to go
with it (from revision 6459).
The new function works like this:
- set the new property on a versioned folder,
e.g. svn:tarballs
neon http://www.webdav.org/neon/neon-0.24.0.tar.gz
- when you do a checkout/update/switch the subversion
client will check if that source tarball needs downloading
and/or extracting.
- if download/extract is needed then the client will try
to download the tarball into the folder which has the
property set.
- if in the config file a untar/unzip program is set then
it starts that program and extracts the tarball to
the folder set in the property
if no such program is set then the tarball is just left
in place so the user can extract it later manually.
That way all needed external libraries can be fetched
by the subversion client and users don't need to
visit several websites and spend their time searching
for the correct library to download and extract.
Some notes:
The new functions don't affect any other functions
in the subversion client. If there are bugs they
won't affect other functions. So I really hope
this patch will go in before 1.0 :)
For the downloading of the tarball I used a new
library called libcurl. You can get it from
http://curl.haxx.se/libcurl/
I used this library 'cause it's cross-platform and
can handle many protocolls, including ftp and also
supports proxies - you never know on what kind
of server the source tarballs are stored.
I tested the patch on my windows machine. Since I
don't have access to a linux machine right now I haven't
tested it there. I hope someone else will test it on other
platforms. Also I don't know Python at all so
the necessary changes to the project file generator
to include the libcurl library are not in the patchfile.
I hope you enjoy the patch :)
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jul 12 20:26:03 2003