+
+logchange() {
+ tag="\${CONF_VERTAG:-dcp}"
+ ver="\$(dpkg-parsechangelog -lrepo/src/debian/changelog | sed -n 's/^Version: \(.*\)$/\1/p')"
+ [ -n "\$ver" ]
+ maint="\$CONF_MAINTAINER"
+ if [ -z "\$maint" ]; then
+ maint="\$(id -un) <\$(id -un)@\$(hostname -f)>"
+ fi
+ cat - repo/src/debian/changelog >repo/src/debian/changelog.new <<ENDCL
+\${CONF_APTPKG} (\${ver}+\${tag}1) unstable; urgency=low
+
+ * Remerged changes in DCP
+
+ -- \${maint} \$(date -R)
+ENDCL
+ mv -f repo/src/debian/changelog.new repo/src/debian/changelog
+}