Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3107 - (hide annotations) (download) (as text)
Fri Mar 15 11:21:10 2019 UTC (5 years, 2 months 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 niro 1330 #!/bin/sh
2    
3 niro 2013 export LC_ALL=C
4 niro 1330
5     SVN="svn"
6 niro 3107 #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 niro 1330 REPO_ROOT=$(svn info | grep 'Repository Root' | sed 's:.*\:\ \(.*\):\1:')
10 niro 3107 REPO_URL=$(svn info | grep '^URL' | sed 's:.*\:\ \(.*\):\1:')
11 niro 1330 # subst root from uri
12     CUR_ROOT="${REPO_URL/${REPO_ROOT}/}"
13    
14     ${SVN} update
15 niro 3107
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 *