[xml/sgml-commit] r1061 - in /packages/docbook-xsl/trunk/debian/patches: ./ 00options 00template

dleidert-guest at users.alioth.debian.org dleidert-guest at users.alioth.debian.org
Thu Mar 27 14:35:30 UTC 2008


Author: dleidert-guest
Date: Thu Mar 27 14:35:30 2008
New Revision: 1061

URL: http://svn.debian.org/wsvn/debian-xml-sgml/?sc=1&rev=1061
Log:
Added 00template and 00options for dpatch. The template does the following for
patches beginning with four numbers: After exiting from the dpatch shell, it
retrieves the author and description information for this SVN revision from
upstream SVN. The changes need to be applied (ideally) via

svn diff -cXXXX https://docbook.svn.sourceforge.net/svnroot/docbook/trunk/xsl | patch -p0

This is NOT automatically done. The template really only cares about the dpatch
patch description. It is currently limited to handle single revisions only.

Improvements are appreciated.


Added:
    packages/docbook-xsl/trunk/debian/patches/00options
    packages/docbook-xsl/trunk/debian/patches/00template   (with props)
Modified:
    packages/docbook-xsl/trunk/debian/patches/   (props changed)

Propchange: packages/docbook-xsl/trunk/debian/patches/
            ('svn:ignore' removed)

Added: packages/docbook-xsl/trunk/debian/patches/00options
URL: http://svn.debian.org/wsvn/debian-xml-sgml/packages/docbook-xsl/trunk/debian/patches/00options?rev=1061&op=file
==============================================================================
--- packages/docbook-xsl/trunk/debian/patches/00options (added)
+++ packages/docbook-xsl/trunk/debian/patches/00options Thu Mar 27 14:35:30 2008
@@ -1,0 +1,1 @@
+DPEP_OPTION_EXEC_TEMPLATE=1

Added: packages/docbook-xsl/trunk/debian/patches/00template
URL: http://svn.debian.org/wsvn/debian-xml-sgml/packages/docbook-xsl/trunk/debian/patches/00template?rev=1061&op=file
==============================================================================
--- packages/docbook-xsl/trunk/debian/patches/00template (added)
+++ packages/docbook-xsl/trunk/debian/patches/00template Thu Mar 27 14:35:30 2008
@@ -1,0 +1,46 @@
+#!/bin/sh
+
+get_svn_info()
+{
+	# possibly pipe to xml_grep: xml_grep --text_only //author -
+	AUTH=`svn log -r $1 https://docbook.svn.sourceforge.net/svnroot/docbook/trunk/xsl | sed -n -e '2p' | awk -F\| '{print $2}'`
+	# possibly pipe to xml_grep: xml_grep --text_only //msg -
+	LOGX=`svn log -r $1 https://docbook.svn.sourceforge.net/svnroot/docbook/trunk/xsl | sed -e '1,3d' -e '$d'`
+	SFBT=`echo $LOGX | egrep "#[[:digit:]]{7}" | sed -e 's/.*\(#[[:digit:]]\{7\}\).*/\1/g'`
+
+	echo "## DP: Upstream fix from revision $1 ($AUTH):"
+
+	echo $LOGX | while read line ; do
+		echo "## DP:   $line"  
+	done
+
+	cat <<EOF
+## DP:
+## DP: <URL:http://docbook.svn.sourceforge.net/docbook/?rev=$REVX&view=rev>
+EOF
+
+	if test -n $SFBT; then
+		echo "## DP: <URL:$SFBT>"
+	fi
+
+	cat <<EOF
+
+ at DPATCH@
+EOF
+}
+
+cat <<EOF
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## $1 by ${DEBFULLNAME} <${DEBEMAIL:-${EMAIL:-$LOGNAME@`hostname -f`}}>
+##
+## All lines beginning with \`## DP:' are a description of the patch.
+EOF
+
+REVX=`echo $1 | awk --posix -F_ '$1 ~ /^[[:digit:]]{4}$/ {print $1}'`
+
+if test -n $REVX; then
+	get_svn_info $REVX
+else
+	echo "## DP: "
+fi
+

Propchange: packages/docbook-xsl/trunk/debian/patches/00template
------------------------------------------------------------------------------
    svn:executable = *




More information about the debian-xml-sgml-commit mailing list