Author: plessy Date: 2011-03-21 10:21:12 +0000 (Mon, 21 Mar 2011) New Revision: 6344
Modified: trunk/community/website/docs/policy.xml Log: Transferred from the DebianMed wiki page. http://wiki.debian.org/DebianMed?action=diff&rev2=87&rev1=86 Modified: trunk/community/website/docs/policy.xml =================================================================== --- trunk/community/website/docs/policy.xml 2011-03-21 10:10:52 UTC (rev 6343) +++ trunk/community/website/docs/policy.xml 2011-03-21 10:21:12 UTC (rev 6344) @@ -230,6 +230,43 @@ The <option>--svn-no-autodch</option> avoids <filename>debian/changelog</filename> to be marked as <literal>UNRELEASED</literal>. </para> + <para id="example-svn-session"> + Here is an example session where a package is prepared manually:<programlisting> +# Check out debian-med/trunk, cd to debian-med/trunk/packages +# Create new project folder with +svn mkdir projectname +svn mkdir projectname/trunk + +# Put orig.tar.gz in place +mv some_version.orig.tar.gz projectname + +# Inform svn-buildpackage about the location of the orig.tar.gz +echo "origDir=.." > projectname/trunk/.svn/deb-layout + +# Untar source tree for development +cd projectname +tar xzvf some_version.orig.tar.gz +cd some-version # entering the unpackaged source tree +if [ ! -d debian ]; then dh_make ; fi +mv debian ../trunk +ln -s ../trunk/debian . + +# continue development +fakeroot ./debian/rules binary + +# until it works, finally +cd .. + +# debian directory is the only thing that is stored in svn, to be merged with upstream +svn propset mergeWithUpstream 1 trunk/debian + +# See if things can be compiled via svn-buildpackage +cd trunk +svn-buildpackage -rfakeroot -uc -us + +# check build +lintian ../build-area/*changes</programlisting> + </para> </sect2> <sect2 id="git-repository-structures"> <title>Common Git repository structures</title> _______________________________________________ debian-med-commit mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/debian-med-commit
