~ubuntu-branches/ubuntu/vivid/docbook-xsl-ns/vivid

« back to all changes in this revision

Viewing changes to debian/patches/00template

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Leidert (dale)
  • Date: 2010-01-31 22:43:55 UTC
  • Revision ID: james.westby@ubuntu.com-20100131224355-59ydxmtw1f43du1u
Tags: 1.75.2+dfsg-5
* debian/patches/514030_debianize_dbtoepub.dpatch: Dropped. This patch leads
  to inclusion of the docbook-xsl stylesheets and misses to match the
  elements in a DB5 document (closes: #567859).
* debian/patches/00list: Adjusted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
 
 
3
#set -ex
 
4
 
3
5
get_svn_info()
4
6
{
5
7
        # possibly pipe to xml_grep: xml_grep --text_only //author -
6
8
        AUTH=`svn log -r $1 https://docbook.svn.sourceforge.net/svnroot/docbook/trunk/xsl | sed -n -e '2p' | awk -F\| '{print $2}'`
7
9
        # possibly pipe to xml_grep: xml_grep --text_only //msg -
8
10
        LOGX=`svn log -r $1 https://docbook.svn.sourceforge.net/svnroot/docbook/trunk/xsl | sed -e '1,3d' -e '$d'`
9
 
        SFBT=`echo $LOGX | egrep "#[[:digit:]]{7}" | sed -e 's/.*\(#[[:digit:]]\{7\}\).*/\1/g'`
 
11
        SFBT=`echo ${LOGX} | egrep "#[[:digit:]]{7}" | sed -e 's/.*#\([[:digit:]]\{7\}\).*/\1/g'`
10
12
 
11
13
        echo "## DP: Upstream fix from revision $1 ($AUTH):"
12
14
 
13
 
        echo $LOGX | while read line ; do
 
15
        echo ${LOGX} | while read line ; do
14
16
                echo "## DP:   $line"  
15
17
        done
16
18
 
19
21
## DP: <URL:http://docbook.svn.sourceforge.net/docbook/?rev=$REVX&view=rev>
20
22
EOF
21
23
 
22
 
        if test -n $SFBT; then
23
 
                echo "## DP: <URL:$SFBT>"
 
24
        if [ ! -z $SFBT ]; then
 
25
                echo "## DP: <URL:http://sourceforge.net/search/?type_of_search=artifact&group_id=21935&words=$SFBT>"
24
26
        fi
25
27
 
26
28
        cat <<EOF
38
40
 
39
41
REVX=`echo $1 | awk --posix -F_ '$1 ~ /^[[:digit:]]{4}$/ {print $1}'`
40
42
 
41
 
if test -n $REVX; then
42
 
        get_svn_info $REVX
 
43
if test -n "${REVX}"; then
 
44
        get_svn_info ${REVX}
43
45
else
44
 
        echo "## DP: "
 
46
        cat <<EOF
 
47
## DP:
 
48
 
 
49
@DPATCH@
 
50
EOF
45
51
fi
46
52