1 |
#!/bin/sh |
#!/bin/sh |
2 |
|
|
3 |
LC_ALL=C |
export LC_ALL=C |
4 |
|
|
5 |
SVN="svn" |
SVN="svn" |
6 |
SVN2CL="/home/tjoke/svn2cl-0.13/svn2cl.sh" |
#SVN2CL="/home/tjoke/svn2cl-0.13/svn2cl.sh" |
7 |
AUTHORS="/home/tjoke/svn2cl-0.13/authors.xml" |
SVN2CL="/home/tjoke/svn2cl-0.14/svn2cl.sh" |
8 |
|
AUTHORS="/home/tjoke/svn2cl-0.14/authors.xml" |
9 |
REPO_ROOT=$(svn info | grep 'Repository Root' | sed 's:.*\:\ \(.*\):\1:') |
REPO_ROOT=$(svn info | grep 'Repository Root' | sed 's:.*\:\ \(.*\):\1:') |
10 |
REPO_URL=$(svn info | grep 'URL' | sed 's:.*\:\ \(.*\):\1:') |
REPO_URL=$(svn info | grep '^URL' | sed 's:.*\:\ \(.*\):\1:') |
11 |
# subst root from uri |
# subst root from uri |
12 |
CUR_ROOT="${REPO_URL/${REPO_ROOT}/}" |
CUR_ROOT="${REPO_URL/${REPO_ROOT}/}" |
13 |
|
|
14 |
${SVN} update |
${SVN} update |
15 |
${SVN2CL} --group-by-day --include-rev --include-actions --break-before-msg --authors ${AUTHORS} --strip-prefix "${CUR_ROOT}" $@ |
|
16 |
|
# subversion 1.8 uses already relative pathes |
17 |
|
if [[ $(svn --version --quiet | sed -e 's:\(.*\..*\)\..*:\1:' -e 's:\.::g') -ge 18 ]] |
18 |
|
then |
19 |
|
${SVN2CL} --group-by-day --include-rev --include-actions --break-before-msg --authors ${AUTHORS} $@ |
20 |
|
else |
21 |
|
${SVN2CL} --group-by-day --include-rev --include-actions --break-before-msg --authors ${AUTHORS} --strip-prefix "${CUR_ROOT}" $@ |
22 |
|
fi |