[projects/setup] Update changelog.sh to git

draenog draenog at pld-linux.org
Sun Nov 3 01:56:57 CET 2013


commit 60c286b3a38a95dc1e233a12c546e246bb8e1661
Author: Kacper Kornet <draenog at pld-linux.org>
Date:   Sun Nov 3 00:53:03 2013 +0000

    Update changelog.sh to git

 changelog.sh | 31 ++-----------------------------
 1 file changed, 2 insertions(+), 29 deletions(-)
---
diff --git a/changelog.sh b/changelog.sh
old mode 100644
new mode 100755
index 8e8cf48..19fdd11
--- a/changelog.sh
+++ b/changelog.sh
@@ -1,37 +1,10 @@
 #!/bin/sh
-# $Id$
 # Run this to generate ChangeLog.
 
-if [ ! -x /usr/bin/cvs2cl ]; then
-	echo >&2 'Need cvs2cl program!'
-	exit 1
-fi
-
 set -e
 
-# create users for cvs2log format
-tmp=$(mktemp -q cvs2logXXXXXX 2>/dev/null || echo ${TMPDIR:-/tmp}/cvs2log.tmp)
-> $tmp
-
-[ -z "$users" -a -f ../CVSROOT/users ] && users=../CVSROOT/users
-[ -z "$users" -a -f ~/.CVS-PLD/CVSROOT/users ] && users=~/.CVS-PLD/CVSROOT/users
-if [ -z "$users" ]; then
-	echo >&2 "Can't find users file!"
-	echo >&2 'Run in parent dir to fetch one:'
-	echo >&2 '$ cvs -d :pserver:cvs at cvs.pld-linux.org:/cvsroot co CVSROOT/users'
-	exit 1
-fi
-
-if grep -q vim:encoding=utf-8 $users; then
-	charset=UTF-8
-else
-	charset=ISO8859-2
-fi
-
-awk -F: '{ login=$1; if ($3) { name=$3 } else { name=$1 }; printf "%s:%s <%s at pld-linux.org>\n", login, name, login }' $users | \
-	iconv -f $charset -t utf-8 > $tmp
-
-TZ=GMT cvs2cl --no-times --usermap $tmp --ignore ChangeLog
+[ -e .git/shallow ] && git fetch --unshallow
+git log --format='%+ai [%h] %aN <%ae>%n%n%x09* %s' --stat | sed '1d' > ChangeLog
 
 # manually fix few encodings
 sed -i -e 's/porz�dki/cleanup/' ChangeLog
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/setup.git/commitdiff/81e2bc872afdd37892d3bb10fa3b5fbe81cbc715



More information about the pld-cvs-commit mailing list