Magellan Linux

Contents of /trunk/pkgtools/svn-generate-magellan-cl.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3107 - (show annotations) (download) (as text)
Fri Mar 15 11:21:10 2019 UTC (5 years, 1 month ago) by niro
File MIME type: application/x-sh
File size: 758 byte(s)
-fixed URL regex, user svn2cl-0.14 and be suversion >=1.8 friendly
1 #!/bin/sh
2
3 export LC_ALL=C
4
5 SVN="svn"
6 #SVN2CL="/home/tjoke/svn2cl-0.13/svn2cl.sh"
7 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:')
10 REPO_URL=$(svn info | grep '^URL' | sed 's:.*\:\ \(.*\):\1:')
11 # subst root from uri
12 CUR_ROOT="${REPO_URL/${REPO_ROOT}/}"
13
14 ${SVN} update
15
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

Properties

Name Value
svn:executable *