---
name: "svn-do"
section: "1"
platform: "linux"
package: "svn-buildpackage"
version: "0.8.10"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/svn-do"
---

# svn-do(1)

export a source and run a command inside the source.

## NAME

svn-do - export a source and run a command inside the source.

## SYNOPSIS

**svn-do COMMAND**

## DESCRIPTION

**svn-do** will use **svn-buildpackage** to export a source, run a command inside the exported source and, if the command succeeds, copy back the debian/ tree

## EXAMPLES

clean the tree (useful if this requires the full source tree)

```
$ svn-do debclean
I: Exporting source tree via svn-buildpackage...
[...]
I: Running command: debclean
[...]
I: Copying back the debian/ tree...
'debian/control' -> 'path/package/debian/control'
```

use **quilt** to refresh a patch

```
$ QUILT_PATCHES=debian/patches svn-do \
 sh -c "quilt push 002_static-linking-dont-build-perf.patch; \
 quilt refresh"
[...]
I: Copying back the debian/ tree...
[...]
'debian/patches/002_static-linking-dont-build-perf.patch' ->
'/path/package/debian/patches/002_static-linking-dont-build-perf.patch'
```

Start a source editing session and decide later not to copy back the debian/ tree

```
$ svn-do $SHELL
[...]
I: Running command: /bin/zsh
% exit 1
E: command exited with 1; not copying back the debian/ tree.
```

## SEE ALSO

**/usr/share/doc/svn-buildpackage/**()

The svn-buildpackage HOWTO manual

[**svn-inject**(1)](/svn-inject/1.md)

puts a Debian source package into Subversion repository

[**svn-upgrade**(1)](/svn-upgrade/1.md)

upgrade source package from a new upstream revision

[**svn**(1)](/svn/1.md)

Subversion command line client tool

[**dpkg-buildpackage**(1)](/dpkg-buildpackage/1.md)

Debian source package tools

[**lintian**(1)](/lintian/1.md)

Debian package checker

## AUTHORS

**Eduard Bloch**

This manual page was written by Eduard Bloch in roff.

**Goneri Le Bouder**

Converted manpages to SGML.

**Neil Williams**

Converted manpages to DocBook XML and current Debian maintainer

## COPYRIGHT

Copyright © 2009 Eduard Bloch\
