1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
|
<refentry id="svn-do">
<refentryinfo>
<address>
<email>blade@debian.org</email>
</address>
<address>
&dhemail;
</address>
<author>
<firstname>Eduard</firstname>
<surname>Bloch</surname>
<contrib>This manual page was written by Eduard Bloch in roff.
</contrib>
</author>
<author>
<firstname>Goneri</firstname>
<surname>Le Bouder</surname>
<contrib>Converted manpages to SGML.</contrib>
</author>
<author>
&dhfirstname;
&dhsurname;
<contrib>Converted manpages to DocBook XML and current Debian maintainer
</contrib>
</author>
<copyright>
<year>2009</year>
<holder>&dhusername;</holder>
</copyright>
&dhdate;
</refentryinfo>
<refmeta>
<refentrytitle>&dopackage;</refentrytitle>
&dhsection;
</refmeta>
<refnamediv>
<refname>&dopackage;</refname>
<refpurpose>export a source and run a command inside the source.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>&dopackage; COMMAND</command>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1>
<title>DESCRIPTION</title>
<para><command>svn-do</command> will use <command>svn-buildpackage</command>
to export a source, run a
command inside the exported source and, if the command succeeds,
copy back the debian/ tree</para>
</refsect1>
<refsect1>
<title>Examples</title>
<para>clean the tree (useful if this requires the full source tree)
</para>
<programlisting>
$ 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'
</programlisting>
<para>use <command>quilt</command> to refresh a patch</para>
<programlisting>
$ 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'
</programlisting>
<para>Start a source editing session and decide later not to copy
back the debian/ tree</para>
<programlisting>
$ svn-do $SHELL
[...]
I: Running command: /bin/zsh
% exit 1
E: command exited with 1; not copying back the debian/ tree.
</programlisting>
<para>edit a patch in a CDBS' simple-patchsys based package</para>
<programlisting>
$ svn-do cdbs-edit-patch 02_pmount.patch
[...]
</programlisting>
</refsect1>
<refsect1>
<title>SEE ALSO</title>
<variablelist>
<varlistentry>
<term>
<citerefentry> <refentrytitle>/usr/share/doc/svn-buildpackage/</refentrytitle></citerefentry>
</term>
<listitem>
<para>The svn-buildpackage HOWTO manual</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<citerefentry> <refentrytitle>svn-inject</refentrytitle> <manvolnum>1</manvolnum> </citerefentry>
</term>
<listitem>
<para>puts a Debian source package into Subversion repository</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<citerefentry> <refentrytitle>svn-upgrade</refentrytitle> <manvolnum>1</manvolnum> </citerefentry>
</term>
<listitem>
<para>upgrade source package from a new upstream revision</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<citerefentry> <refentrytitle>svn</refentrytitle> <manvolnum>1</manvolnum> </citerefentry>
</term>
<listitem>
<para>Subversion command line client tool</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<citerefentry> <refentrytitle>dpkg-buildpackage</refentrytitle> <manvolnum>1</manvolnum> </citerefentry>
</term>
<listitem>
<para>Debian source package tools</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<citerefentry> <refentrytitle>lintian</refentrytitle> <manvolnum>1</manvolnum> </citerefentry>
</term>
<listitem>
<para>Debian package checker</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
</refentry>
|