I would like to use Subversion and checkout only source files (for example: checking out only .c
, .cpp
and .h
files). Is this possible ? If so, how can I do that?
I am trying to get the webkit source code from:
http://svn.webkit.org/repository/webkit/releases/WebKitGTK/
I don't really want to change the code and check it in again or build it. I just want the source files because downloading the entire release is about 3GB per version.
PARTIAL SOLUTION:For now I am going to download the directories i want. But i could traverse through the directories recursively, and then download the files that follow the pattern i want.
This is a pseudo python code I will call
GetAllSourceFiles('http://svn.webkit.org/repository/webkit/releases/WebKitGTK/')
def GetAllSourceFiles(directoryName):
list = svn ls directoryName
for name in list:
if name is a file of type c,cpp or h:
do svn export directoryName + name
else if name is directory:
do GetAllSourceFiles(name)