File: svn2log.sh

package info (click to toggle)
kde-dev-scripts 4%3A18.08.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,496 kB
  • sloc: perl: 15,466; lisp: 5,627; sh: 4,157; python: 3,892; ruby: 2,158; makefile: 16; sed: 9
file content (23 lines) | stat: -rwxr-xr-x 543 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
#
# Shell script for creating a ChangeLog file from SVN
#
# Copyright 2009 Tom Albers <toma@kde.org>
# License: GNU General Public License V2 or later

PARAM=$1;

if test -z "$PARAM"; then
    PARAM=".";
fi;

CURRENT=`dirname "$0"`;

echo "Fetching committers...";
svn cat svn://anonsvn.kde.org/home/kde/trunk/kde-common/accounts > /tmp/accounts.$PPID

echo "Creating changelog...";
PYTHON=${PYTHON:-python}
svn log -v --xml $1 | ${PYTHON} $CURRENT/svn2log.py --users=/tmp/accounts.$PPID --users-charset=UTF8

rm /tmp/accounts.$PPID