annotate svn2cl @ 4:f27514832835

Test for existence of repository.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 09 May 2008 14:33:35 +0300
parents 2375efb3340d
children cdd7f7b6d4b0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 #!/bin/sh
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3 # svn2cl.sh - front end shell script for svn2cl.xsl, calls xsltproc
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4 # with the correct parameters
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5 #
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6 # Copyright (C) 2005-2008 Arthur de Jong.
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
7 #
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8 # Redistribution and use in source and binary forms, with or without
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9 # modification, are permitted provided that the following conditions
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10 # are met:
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11 # 1. Redistributions of source code must retain the above copyright
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 # notice, this list of conditions and the following disclaimer.
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13 # 2. Redistributions in binary form must reproduce the above copyright
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 # notice, this list of conditions and the following disclaimer in
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15 # the documentation and/or other materials provided with the
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16 # distribution.
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17 # 3. The name of the author may not be used to endorse or promote
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
18 # products derived from this software without specific prior
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19 # written permission.
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
20 #
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
21 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
22 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
23 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
24 # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
25 # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
27 # GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
28 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
29 # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
30 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
31 # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
32
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
33 # exit on any failures
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
34 set -e
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
35
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
36 # svn2cl version
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
37 VERSION="0.2"
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
38
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
39 # set default parameters
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
40 STRIPPREFIX=`basename $(pwd)`
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
41 LINELEN=75
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
42 GROUPBYDAY="yes"
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
43 INCLUDEREV="no"
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
44 CHANGELOG="ChangeLog"
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
45
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
46 # do command line checking
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
47 prog=`basename $0`
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
48 while [ -n "$1" ]
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
49 do
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
50 case "$1" in
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
51 --strip-prefix)
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
52 STRIPPREFIX="$2"
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
53 shift 2
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
54 ;;
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
55 --linelen)
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
56 LINELEN="$2";
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
57 shift 2
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
58 ;;
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
59 --separate)
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
60 GROUPBYDAY="no";
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
61 shift
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
62 ;;
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
63 -r|--include-rev)
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
64 INCLUDEREV="yes";
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
65 shift
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
66 ;;
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
67 -O|--svn-options)
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
68 EXTRAOPTS="$2"
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
69 shift 2
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
70 ;;
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
71 -o|--output)
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
72 CHANGELOG="$2"
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
73 shift 2
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
74 ;;
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
75 --stdout)
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
76 CHANGELOG="-"
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
77 shift
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
78 ;;
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
79 -V|--version)
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
80 echo "$prog $VERSION";
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
81 echo "Written by Arthur de Jong."
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
82 echo "Modified by Matti Hamalainen."
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
83 echo "Copyright (C) 2005-2008 Arthur de Jong."
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
84 echo ""
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
85 echo "This is free software; see the source for copying conditions. There is NO"
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
86 echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
87 exit 0
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
88 ;;
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
89 -h|--help)
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
90 echo "Usage: $prog [OPTION]..."
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
91 echo "Generate a ChangeLog from a checked out subversion repository."
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
92 echo ""
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
93 echo " --strip-prefix NAME prefix to strip from all entries, defaults"
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
94 echo " to the name of the current directory"
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
95 echo " --linelen NUM maximum length of an output line"
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
96 echo " --separate don't group changelog entries by day"
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
97 echo " -r, --include-rev include revision numbers"
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
98 echo " -o, --output FILE output to FILE instead of ChangeLog"
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
99 echo " --stdout output to stdout instead of ChangeLog"
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
100 echo " -O, --svn-options OPT options passed to Subversion"
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
101 echo " -h, --help display this help and exit"
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
102 echo " -V, --version output version information and exit"
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
103 exit 0
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
104 ;;
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
105 *)
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
106 echo "$prog: invalid option -- $1"
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
107 echo "Try \`$prog --help' for more information."
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
108 exit 1
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
109 ;;
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
110 esac
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
111 done
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
112
4
f27514832835 Test for existence of repository.
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
113 # test for repository
f27514832835 Test for existence of repository.
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
114 if test ! -e ".svn"; then
f27514832835 Test for existence of repository.
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
115 echo "No Subversion repository found from this directory."
f27514832835 Test for existence of repository.
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
116 exit 2
f27514832835 Test for existence of repository.
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
117 fi
f27514832835 Test for existence of repository.
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
118
1
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
119 # find the directory that this script resides in
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
120 prog="$0"
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
121 while test -h "$prog"; do
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
122 prog=`ls -ld "$prog" | sed "s/^.*-> \(.*\)/\1/;/^[^/]/s,^,$(dirname "$prog")/,"`
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
123 done
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
124 dir=`dirname $prog`
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
125 dir=`cd $dir && pwd`
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
126 XSL="$dir/svn2cl.xsl"
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
127
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
128 # redirect stdout to the changelog file if needed
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
129 if test "x$CHANGELOG" != "x-"; then
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
130 exec > "$CHANGELOG"
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
131 fi
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
132
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
133 # actually run the command we need
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
134 svn --verbose --xml log $SVNOPTS | \
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
135 xsltproc --stringparam strip-prefix "$STRIPPREFIX" \
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
136 --stringparam linelen $LINELEN \
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
137 --stringparam groupbyday $GROUPBYDAY \
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
138 --stringparam include-rev $INCLUDEREV \
2375efb3340d Added a modified version of svn2cl and the XSL stylesheet.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
139 "$XSL" -