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

Re: How to export only certain file types from the folder?

From: David Weintraub <qazwart_at_gmail.com>
Date: Wed, 16 Sep 2009 11:22:45 -0400

Are you on a Unix/Linux system?

I just did this as a test:

svn ls -R $URL | while read fileName
    [ "${fileName##*.}" != "$SUFFIX" ] && continue
    dirname=$(dirname $fileName)
    [ -d $dirname ] || mkdir -p $dirname
    svn cat $URL/$fileName > $fileName

You have to change "URL" and "SUFFIX" for the files you want. This is
written in Kornshell, but will probably work in BASH too.

Otherwise, you might be better off simply exporting the whole working copy,
then deleting all the files that you don't want.

On Wed, Sep 16, 2009 at 10:32 AM, kmudrovcic <kmudrovcic_at_gmail.com> wrote:

> How to use svn export command in a script so i can export only e.g. pdfs
> from
> some folder?
> Thanks in advance
> --
> View this message in context:
> http://www.nabble.com/How-to-export-only-certain-file-types-from-the-folder--tp25473726p25473726.html
> Sent from the Subversion Users mailing list archive at Nabble.com.
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2395585
> To unsubscribe from this discussion, e-mail: [
> users-unsubscribe_at_subversion.tigris.org].

David Weintraub
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-16 17:23:42 CEST

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.