Search code examples
svndebianpackage-managerschangelog

use svn log as debian package changelog


I want to use my svn log as debian/changelog file used by dpkg-buildpackage in package building.

I tried svn2cl in subversion-tools package to create a changelog from svn log but it is not formatted as a standard debian changelog.


Solution

  • The best would be to create XSLT stylesheet and process the svn output to suite your needs.

    # svn log --xml --verbose | xsltproc svn2cl.xsl - > changeLog
    

    You can modify the one provided by svn2cl.

    Additionally, there is a script that Thomas Lange wrote available here, but still I would suggest using regular XSL over a custom script.

    BTW, svn-buildpackage have this functionality build in, although it does require you to follow a very strict procedure of handling a package in SVN repo...