I don't believe it is possible - you can export a file or a whole directory.

You could export the tree with one command and then move/cherry pick the files you want afterwards.

On Sat, 21 Jan 2023, Bo Berglund wrote:
I have a script, which is used in our installer creation process and it works as
follows (on Windows):

- Create a new target directory
- Run svn commands to get the needed files into that dir
- Run svn command to download the installer engine binary into its own dir
- Run svn command to download the installer script itself
- Start the installer engine with the script as argument

This produces a new installation file in the installers directory.

The svn command I am using is svn export since I don't want to create a
versioned container and I also want to collect files from various different
locations including documentation which will be part of the installer.

What I would like to know is if there is an svn export command switch of some
kind that can be used to export a set of files in one go if they reside in the
same subversion directory?

Right now I am repeating the following typical sequence, where the svn commands
have to be run *inside* the target directory (variable SVNREPO has been set to
the repository URL earlier):

if EXIST Manager rmdir /s /q Manager
mkdir Manager
cd Manager
svn export %SVNREPO%/Manager.exe .\
if errorlevel 1 goto error
svn export %SVNREPO%/ssleay32.dll .\
if errorlevel 1 goto error
svn export %SVNREPO%/libeay32.dll .\
if errorlevel 1 goto error
svn export %SVNREPO%/doc/Manager_instructions.pdf .\

So to get these 4 files I have to issue 4 different svn commands...

And I have had to create the target dir and move into it before doing this
because otherwise the command instead of creating a subdir to stuff the file
into exports the source file into a file named as the directory it is supposed
to go into...

Example:
svn --force export %SVNREPO%/ssleay32.dll TargetDir

This creates a *file* TargetDir with the content of ssleay32.dll instead of
ssleay32.dll inside of TargetDir

I would like to use a single svn command per source dir and get all the needed
files from there at the same time according to a supplied list.

Is this possible at all?




--
Jon Daley
https://jon.limedaley.com
~~
A man full of hope will be full of action.
-- Thomas Brooks

Reply via email to